pub trait PackageCall: Send + Sync {
    fn call<'a>(
        &'a self,
        response: &'a mut Response<()>,
        request: &'a FatRequest,
        host: &'a Host,
        addr: SocketAddr
    ) -> RetFut<'a, ()>; }
Expand description

Implement this to pass your extension to Extensions::add_package.

Required Methods§

Arguments
  • A mutable reference to a Response without the body.
  • An immutable reference to the request.
  • An immutable reference to the host this request is to.

Implementors§