---
title: inspect
summary: Inspect a Request using the Fastly Next-Gen WAF.
url: https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/security/fn.inspect/
---

**Kind:** Function  
**Module:** [security](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/security/)  
**Package:** fastly 0.13.1  
**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/security.rs#228

```rust
fn inspect(config: InspectConfig<'_>) -> Result<InspectResponse, InspectError>
```

Inspect a [`Request`](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/http/request/struct.Request/) using the [Fastly Next-Gen WAF](https://docs.fastly.com/en/ngwaf/).

**Parameters**

- `config`: `InspectConfig`

**Returns**

`Result<InspectResponse, InspectError>`
