RequestContextOptions
Defined in: src/context.ts:75
Options for auditContextFromRequest.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
ip? |
string |
Fallback IP when no header carries one (e.g. Bun’s server.requestIP). |
src/context.ts:85 |
requestIdHeader? |
string |
Header carrying the request id. Default: x-request-id, then cf-ray. |
src/context.ts:83 |
trustProxy? |
boolean |
Trust proxy headers (x-forwarded-for, cf-connecting-ip, x-real-ip, fly-client-ip) for the client IP. Default true — set false when the app is reachable directly, or clients can spoof their IP. |
src/context.ts:81 |