1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-23 23:51:06 +01: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 ws;
pub use httpcodes; pub use httpcodes;
pub use application::Application; pub use application::Application;
pub use httpmessage::{HttpRequest, HttpResponse, IntoHttpResponse}; pub use httpmessage::{Body, HttpRequest, HttpResponse, IntoHttpResponse};
pub use payload::{Payload, PayloadItem}; pub use payload::{Payload, PayloadItem};
pub use router::RoutingMap; pub use router::RoutingMap;
pub use resource::{Reply, Resource}; pub use resource::{Reply, Resource};

View File

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

View File

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