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

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

Required Methods§

Arguments
  • An immutable reference to the request.
  • An immutable reference to the host this request is to.
  • The SocketAddr of the requester.

Implementors§