Skip to main content

Module context

Module context 

Source
Expand description

The per-request Context object that flows through every node of a policy graph, carrying the inbound request, the response under construction, free-form inter-node state, and any errors accumulated along the way. Serializable so it can be marshalled to and from Lua scripts.

Modules§

bytes_serde 🔒
Serde adapter that encodes Bytes as a base64 string, keeping binary bodies intact through JSON/Lua round-trips.

Structs§

Context
Holds all state for one request as it travels through a policy graph.
GatewayError
An error recorded by a node during graph execution.
GatewayRequest
Protocol-agnostic snapshot of the inbound request, decoupled from hyper types.
GatewayResponse
The response under construction, ultimately returned to the client.

Enums§

Protocol
Wire protocol of the inbound connection.