Pular para o conteúdo
Português (BR)

RequestIdOptionsType

Este conteúdo não está disponível em sua língua ainda.

RequestIdOptionsType = object

Defined in: src/http/middleware/RequestIdOptions.ts:13

Plain settings shape for request-id.

readonly optional generate?: () => string

Defined in: src/http/middleware/RequestIdOptions.ts:19

Id generator. Default randomUuid, exported from the root entry point.

string


readonly optional headerName?: string

Defined in: src/http/middleware/RequestIdOptions.ts:15

Header carrying the id, in + out. Default 'x-request-id'.


readonly optional trustIncoming?: boolean

Defined in: src/http/middleware/RequestIdOptions.ts:17

Accept a well-formed incoming id instead of always generating. Default true.