Skip to content

AssignAttributesConfig

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

Configuration for the assignAttributes policy.

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

Defined in: 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: src/policies/types.ts:33

Skip this policy when condition returns true

unknown

boolean | Promise<boolean>

PolicyConfig.skip