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).