Skip to main content

Module serve

Module serve 

Source
Expand description

Running an application over HTTP.

The application itself knows nothing about sockets: it turns a RawRequest into crate::middleware::ResponseParts. This module is the shell that carries those over HTTP, built on axum, and it is the only place in the crate that depends on a server.

Structs§

BoundServer
An application bound to a port, before it starts serving.

Functions§

router
Build the axum router that serves an application.
serve
Bind an application to an address and serve it.