Skip to main content

Module engine

Module engine 

Source
Expand description

The hyper-based HTTP/1.1 serving engine that drives an App over a real socket.

Most applications never call into this module directly — App::start and App::start_with_shutdown bind a listener and delegate to serve. It is public so advanced callers can drive serving with a custom address and shutdown signal.

Functions§

serve
Serve app on addr until shutdown resolves (graceful drain).
serve_many
Serve on several addresses at once, until shutdown resolves.
serve_on
Serve app on an already-bound listener until shutdown resolves.
serve_unix
Serve on a Unix domain socket instead of TCP.