Type Alias ConnectionMiddleware

Source
pub type ConnectionMiddleware = fn(&mut Request<Incoming>, SocketAddr);
Expand description

The type of the connection middleware.

It is a function which receives a mutable request and a SocketAddr representing the remote client.