Skip to main content

Module server

Module server 

Source
Expand description

HTTP listener admission, header deadlines and graceful shutdown.

Structsยง

AdmittedSocket ๐Ÿ”’
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.