The tulip.pkg.reqid module exports the reqid package.


  • tulip.pkg.middleware


  • size: integer = size of the raw ID, before base-64 encoding (Default: 12)
  • header: string = name of the header where to set the ID (Default: 'x-request-id')

#Registered Middleware

The following middleware are registered and can be referenced by name in the configuration.


Adds a unique id to each request. The id is added to both the request and the response's headers (under the header name provided in the configuration) and is also added on the request.locals.request_id field.

Back to index

About this wiki

commit 3ebfbd288b8e5c95fdf8ce2027a0e94cfa1c8976
Author: Martin Angers <martin.n.angers@gmail.com>
Date:   2021-02-25T14:07:12-05:00

Update to reflect Request:validate_body
Clone this wiki
https://git.sr.ht/~mna/tulip-wiki (read-only)
git@git.sr.ht:~mna/tulip-wiki (read/write)