tower_server

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.