Skip to content

AssignAttributesConfig

Defined in: packages/gateway/src/policies/transform/assign-attributes.ts:14

Configuration for the assignAttributes policy.

attributes: Record<string, string | ((c) => string | Promise<string>)>

Defined in: packages/gateway/src/policies/transform/assign-attributes.ts:19

Key-value pairs to set on the Hono context. Values can be static strings or functions that receive the context.


optional skip?: (c) => boolean | Promise<boolean>

Defined in: packages/gateway/src/policies/types.ts:90

Skip this policy when condition returns true

unknown

boolean | Promise<boolean>

PolicyConfig.skip