From 9653a1fa98111d1a5427199dced5352c1cbcd49c Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 9 Oct 2017 23:39:41 -0700 Subject: [PATCH] export Body --- src/dev.rs | 2 +- src/lib.rs | 2 +- src/router.rs | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/dev.rs b/src/dev.rs index c533bfd64..0f6e26f7a 100644 --- a/src/dev.rs +++ b/src/dev.rs @@ -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}; diff --git a/src/lib.rs b/src/lib.rs index 5bdcb0dba..5e87ab460 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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}; diff --git a/src/router.rs b/src/router.rs index 74083940d..410cb23f7 100644 --- a/src/router.rs +++ b/src/router.rs @@ -138,7 +138,6 @@ impl Router { return app.handle(req, payload) } } - Task::reply(IntoHttpResponse::response(HTTPNotFound, req)) } }