Expand description
HTTP listener admission, header deadlines and graceful shutdown.
Structsยง
- Admitted
Socket ๐ - Couples admission to the socket because Hyper transfers the IO into an upgraded WebSocket before its HTTP connection future completes.
Functionsยง
- serve_
connection ๐ - serve_
connections ๐ - Owns HTTP connection tasks so cancelling the listener also closes their sockets.
- serve_
http ๐ - Binds the configured HTTP address and serves until shutdown completes.
- serve_
http_ ๐on - Serves an existing listener with authorization bound to its actual address.