Skip to content

Commit

Permalink
docs: describes capture of body and header in CLI proxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
outofcoffee authored Nov 20, 2024
1 parent a7f8bfc commit 8b90b1f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/proxy_endpoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,26 @@ For completeness, see the contents of the response file reflect the content of t

You can, of course, edit the configuration file so the mock behaves differently. When you change either the configuration file or response file, the Imposter CLI will restart to reflect your latest changes.

### Capture request body and headers

It's possible to capture the request body and/or request headers using the following flags:

```
--capture-request-body
```

and

```
--capture-request-headers
```
For example:
```
imposter proxy http://example.com --capture-request-body --capture-request-headers
```
## What's next
Learn how to use Imposter with the [Configuration guide](configuration.md).

0 comments on commit 8b90b1f

Please sign in to comment.