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.