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§
- Request
IdPlugin - 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_responsethe 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
headerinheaders.