Request Rewrite Alt

Request Rewrite Phase#

The Request Rewrite phase allows modification of incoming requests before further processing. Changes made during this phase are visible to subsequent phases.

Available Actions#

  • http.request.uri.set: Modifies the URI for the current request.

Available Fields#

Available Functions#

Example#

The configuration converts the request URI path to lowercase:

http.request.uri.set:
  path: ${lower(http.request.uri.path)}
  query: ${http.request.uri.query}

This configuration normalises URLs for better caching and consistency.

peakhour