Skip to main content

Module context

Module context 

Source

Structs§

ContextFieldDef
Definition for a single context field: where to extract it and its schema.

Functions§

context_has_extracts
Check whether any context fields are defined.
context_keys_from_schema
Extract property key names from a JTD schema’s properties field.
extract_raw_context
Build a RawContextMap keyed by config key from request headers, cookies, and query string.
parse_cookie_header
Parse a Cookie header into key-value pairs.
parse_extract_rule
Parse an extract rule like “header:authorization” into (source, key).
resolve_context
Resolve context values from raw extracted data for the given requested keys. Returns a JSON object with the requested context fields.

Type Aliases§

ContextConfig
Map of context key -> field definition.
RawContextMap
Raw extracted values from HTTP request (e.g. headers). None means the source was not present.