1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 02:19:22 +02:00

better naming

This commit is contained in:
Nikolay Kim
2017-10-07 00:22:09 -07:00
parent ce4aea46c3
commit 127cc270da
4 changed files with 7 additions and 7 deletions

View File

@ -25,9 +25,9 @@ impl Route for MyRoute {
{
if let Some(pl) = payload {
ctx.add_stream(pl);
Self::stream(MyRoute{req: Some(req)})
Self::http_stream(MyRoute{req: Some(req)})
} else {
Self::reply(req, httpcodes::HTTPOk)
Self::http_reply(req, httpcodes::HTTPOk)
}
}
}
@ -49,7 +49,7 @@ impl Handler<PayloadItem> for MyRoute {
ctx.write_eof();
}
Response::Empty()
Self::empty()
}
}