Skip to main content

Module forward

Module forward 

Source

Functions§

forward_request
Transforms the already-parsed JSON request body (parsed once upstream, so the compressor never re-parses) into the serialized — possibly compressed — body, its original size, and its compressed size. A plain fn from the static providers or a closure that captures request-derived context (e.g. Gemini’s path-encoded model) both satisfy this bound.