Trait hyper::server::Handler
[-] [+]
[src]
pub trait Handler: Sync + Send { fn handle<'a>(&'a self, Request<'a>, Response<'a, Fresh>); }
A handler that can handle incoming requests for a server.
Required Methods
fn handle<'a>(&'a self, Request<'a>, Response<'a, Fresh>)
Receives a Request
/Response
pair, and should perform some action on them.
This could reading from the request, and writing to the response.