Skip to main content

Module server

Module server 

Source

Re-exports§

pub use graceful::GracefulShutdown;
pub use proxy_protocol::PrefixedStream;
pub use proxy_protocol::ProxyProtocolHeader;

Modules§

graceful
Graceful shutdown coordinator.
http_server
proxy_protocol
PROXY protocol v1/v2 parser for extracting the real client address from load balancers, CDNs, or other proxies that prepend the PROXY protocol header to TCP connections.

Structs§

AppState
Shared application state, hot-swappable via ArcSwap.

Functions§

run
Start the HTTP (and optionally HTTPS) listener(s) and serve requests.