Skip to main content

Module request_id

Module request_id 

Source
Expand description

The request-id node — ensures every request carries a unique id header and optionally echoes it on the response.

Port of APISIX’s request-id plugin. featherbit implements the uuid algorithm (UUID v4); APISIX’s nanoid, range_id, ksuid and uuidv7 algorithms are not supported and are rejected at config load.

Structs§

RequestIdPlugin
Guarantees a request-id header on the request: when the header is absent (or empty) a fresh UUID v4 is generated and set; an id supplied by the client is kept as-is. With include_in_response the same id is also set on the response, unless the response already carries one.

Functions§

first_non_empty 🔒
Returns the first non-empty value of header in headers.