Request Headers
Request Headers¶
During this phase, headers in the incoming client request can be modified or set. This is crucial for tasks like appending security tokens, adjusting origin-forwarded values, or transforming the client information before it reaches the application.
Example: Before routing a request to a particular service, adding a header to specify the desired version of the
API: X-API-Version: v2
.
Actions¶
early_hints.send
: Generate and send a 103 Early Hints informational response to the client. This can help the browser start preloading resources while the origin is preparing the full response.http.request.headers.set
: Changes or adds a new request header. If the value is empty, the header will be removed.http.request.headers.remove
: Removes specified request headers.
Fields¶
Available fields in the Request Headers phase: