Skip to main content

Module http

Module http 

Source
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§

HttpBindAddress
Validated HTTP bind address in host:port form.
HttpConfig
Event-driven HTTP configuration for future inbound and outbound adapters.
HttpConnectionId
Stable identifier assigned to an accepted HTTP connection.
HttpProxyConfig
Outbound HTTP proxy and TLS verification policy.
OutboundClientError

Enums§

HttpClientError
Error raised by bounded outbound JSON HTTP calls.
HttpConfigError
HTTP configuration validation error.
HttpServeError
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.