Trait hyper::server::Handler [-]  [+] [src]

pub trait Handler: Sync + Send {
    fn handle(&self, Request, Response<Fresh>);
}

A handler that can handle incoming requests for a server.

Required Methods

fn handle(&self, Request, Response<Fresh>)

Receives a Request/Response pair, and should perform some action on them.

This could reading from the request, and writing to the response.

Implementors