feat(server): add Transport to on_request

This commit is contained in:
Sean McArthur
2016-06-23 15:29:30 -07:00
parent e682844431
commit 2fbd80ce69
9 changed files with 32 additions and 295 deletions

View File

@@ -46,7 +46,7 @@ impl Echo {
}
impl Handler<HttpStream> for Echo {
fn on_request(&mut self, req: Request) -> Next {
fn on_request(&mut self, req: Request<HttpStream>) -> Next {
match *req.uri() {
RequestUri::AbsolutePath(ref path) => match (req.method(), &path[..]) {
(&Get, "/") | (&Get, "/echo") => {