Skip to main content

Module server

Module server 

Source

Structs§

AdapterSnapshot
DirectResponseHead
Validated minimal upstream response head.
HealthSnapshot

Constants§

DIRECT_PROXY_ERROR_FRAME
The only frame emitted after a direct SSE response has opened and later fails closed.
DIRECT_PROXY_PING_FRAME
Compiled ping emitted by a direct SSE response only after its upstream head is accepted.

Functions§

classify_upstream_status
Maps an upstream status without reading its body or redirect metadata.
parse_request_stream_format
Parses the request stream control as a closed boolean without sniffing or fallback.
serve
Bind the configured address and serve until cancelled or the server fails.
serve_with_listener
Serve on an already bound listener, retaining ownership throughout startup.
serve_with_ready
Invoke ready only after configuration validation and a successful bind.
validate_declared_body
Validates one complete declared body without format sniffing or fallback.
validate_direct_response_head
Validates a raw upstream head and rebuilds its minimal transformed header allowlist.