1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-20 08:31:09 +00:00

export Body

This commit is contained in:
Nikolay Kim 2017-10-09 23:39:41 -07:00
parent be7bda65ef
commit 9653a1fa98
3 changed files with 2 additions and 3 deletions

View file

@ -10,7 +10,7 @@
pub use ws;
pub use httpcodes;
pub use application::Application;
pub use httpmessage::{HttpRequest, HttpResponse, IntoHttpResponse};
pub use httpmessage::{Body, HttpRequest, HttpResponse, IntoHttpResponse};
pub use payload::{Payload, PayloadItem};
pub use router::RoutingMap;
pub use resource::{Reply, Resource};

View file

@ -37,7 +37,7 @@ pub mod ws;
pub mod dev;
pub mod httpcodes;
pub use application::Application;
pub use httpmessage::{HttpRequest, HttpResponse, IntoHttpResponse};
pub use httpmessage::{Body, HttpRequest, HttpResponse, IntoHttpResponse};
pub use payload::{Payload, PayloadItem};
pub use router::RoutingMap;
pub use resource::{Reply, Resource};

View file

@ -138,7 +138,6 @@ impl Router {
return app.handle(req, payload)
}
}
Task::reply(IntoHttpResponse::response(HTTPNotFound, req))
}
}