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