Expand description
HTTP runtime policy owned by the network boundary.
This module intentionally models configuration and validation only. Future
HTTP server/client adapters must use a mature async runtime underneath this
boundary and keep QoS admission in net::qos.
Structs§
- Http
Bind Address - Validated HTTP bind address in
host:portform. - Http
Config - Event-driven HTTP configuration for future inbound and outbound adapters.
- Http
Connection Id - Stable identifier assigned to an accepted HTTP connection.
- Http
Proxy Config - Outbound HTTP proxy and TLS verification policy.
- Outbound
Client Error
Enums§
- Http
Client Error - Error raised by bounded outbound JSON HTTP calls.
- Http
Config Error - HTTP configuration validation error.
- Http
Serve Error - Error raised while serving an event-driven HTTP adapter.
Constants§
- DEFAULT_
HTTP_ BIND - DEFAULT_
MAX_ BODY_ BYTES - DEFAULT_
REQUEST_ TIMEOUT - DEFAULT_
SHUTDOWN_ TIMEOUT - DEFAULT_
SSL_ VERIFY
Functions§
- outbound_
json_ client - Builds an async outbound JSON client from validated network policy.
- outbound_
json_ client_ with_ policy - Builds an async outbound JSON client with request-scoped transport policy.
- post_
json - Posts a JSON payload through the network boundary using the configured timeout.
- remote_
clients_ allowed - Returns whether a listener may accept non-local clients under the access policy.
- serve_
router - Starts an async HTTP server with graceful shutdown under the network boundary.
- serve_
router_ with_ qos - Starts an async HTTP server whose accepted connections consume QoS permits.