Skip to content

request_id

request_id ensures every request has an X-Request-Id header. If the request does not provide one, Turna generates a ULID.

yaml
server:
  http:
    middlewares:
      request_id_response:
        request_id:
          request_id_response: true
FieldDefaultDescription
request_id_responsefalseAlso set X-Request-Id on the response.

HTTP routers already include request ID handling by default through pre_middlewares.request_id. Use this middleware when you need explicit response-header behavior or a manual position in the chain.