From 6eb78e563bb9a0dc35b39682f5b3acfebcbb7e99 Mon Sep 17 00:00:00 2001 From: dmartel Date: Thu, 28 Nov 2024 06:02:37 +0100 Subject: [PATCH] doc(basics:response): add request-id (#171) --- content/docs/basics/response.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/docs/basics/response.md b/content/docs/basics/response.md index 8b3ccfd..0b827f0 100644 --- a/content/docs/basics/response.md +++ b/content/docs/basics/response.md @@ -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.