Skip to content

Commit

Permalink
doc(basics:response): add request-id (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmartel authored Nov 28, 2024
1 parent 081246f commit 6eb78e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/docs/basics/response.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ The `response.removeHeader` method removes the existing header.
response.removeHeader('Set-cookie')
```

### X-Request-Id header

If the header exists in the current request or if [Generating request ids](./request#generating-request-ids) is enabled, the header will be present in the response.

## Redirects

The `response.redirect` method returns an instance of the [Redirect](https://github.com/adonisjs/http-server/blob/main/src/redirect.ts) class. The redirect class uses fluent API to construct the redirect URL.
Expand Down

0 comments on commit 6eb78e5

Please sign in to comment.