pub trait ProcessRequest: Send + Sync {
    fn process_request(&self, request: &Request<Body>) -> Option<Response<Body>>;
}
Expand description

A type that can process an HTTP request.

Required Methods

Processes an HTTP request.

If the processor feels responsible for the request, it should return some response. This can be an error response. Otherwise it should return None.

Implementations on Foreign Types

Implementors