mirror of
https://github.com/actix/actix-web.git
synced 2024-12-18 14:16:47 +00:00
rename httpmessage to httpresponse
This commit is contained in:
parent
1d2521a5a4
commit
5480cb5d49
10 changed files with 10 additions and 10 deletions
|
@ -9,7 +9,7 @@ use actix::fut::ActorFuture;
|
|||
use actix::dev::{AsyncContextApi, ActorAddressCell, ActorItemsCell, SpawnHandle};
|
||||
|
||||
use route::{Route, Frame};
|
||||
use httpmessage::HttpResponse;
|
||||
use httpresponse::HttpResponse;
|
||||
|
||||
|
||||
/// Actor execution context
|
||||
|
|
|
@ -12,7 +12,7 @@ pub use httpcodes;
|
|||
pub use error::ParseError;
|
||||
pub use application::Application;
|
||||
pub use httprequest::HttpRequest;
|
||||
pub use httpmessage::{Body, Builder, HttpResponse};
|
||||
pub use httpresponse::{Body, Builder, HttpResponse};
|
||||
pub use payload::{Payload, PayloadItem, PayloadError};
|
||||
pub use router::RoutingMap;
|
||||
pub use resource::{Reply, Resource};
|
||||
|
|
|
@ -10,7 +10,7 @@ use httparse;
|
|||
use http::{StatusCode, Error as HttpError};
|
||||
|
||||
use HttpRangeParseError;
|
||||
use httpmessage::{Body, HttpResponse};
|
||||
use httpresponse::{Body, HttpResponse};
|
||||
|
||||
|
||||
/// A set of errors that can occur during parsing HTTP streams.
|
||||
|
|
|
@ -7,7 +7,7 @@ use task::Task;
|
|||
use route::RouteHandler;
|
||||
use payload::Payload;
|
||||
use httprequest::HttpRequest;
|
||||
use httpmessage::{Body, Builder, HttpResponse};
|
||||
use httpresponse::{Body, Builder, HttpResponse};
|
||||
|
||||
pub const HTTPOk: StaticResponse = StaticResponse(StatusCode::OK);
|
||||
pub const HTTPCreated: StaticResponse = StaticResponse(StatusCode::CREATED);
|
||||
|
|
|
@ -32,7 +32,7 @@ mod error;
|
|||
mod date;
|
||||
mod decode;
|
||||
mod httprequest;
|
||||
mod httpmessage;
|
||||
mod httpresponse;
|
||||
mod payload;
|
||||
mod resource;
|
||||
mod route;
|
||||
|
@ -50,7 +50,7 @@ pub mod httpcodes;
|
|||
pub use error::ParseError;
|
||||
pub use application::Application;
|
||||
pub use httprequest::HttpRequest;
|
||||
pub use httpmessage::{Body, Builder, HttpResponse};
|
||||
pub use httpresponse::{Body, Builder, HttpResponse};
|
||||
pub use payload::{Payload, PayloadItem, PayloadError};
|
||||
pub use router::RoutingMap;
|
||||
pub use resource::{Reply, Resource};
|
||||
|
|
|
@ -11,7 +11,7 @@ use route::{Route, RouteHandler};
|
|||
use payload::Payload;
|
||||
use context::HttpContext;
|
||||
use httprequest::HttpRequest;
|
||||
use httpmessage::HttpResponse;
|
||||
use httpresponse::HttpResponse;
|
||||
use httpcodes::HTTPMethodNotAllowed;
|
||||
|
||||
/// Http resource
|
||||
|
|
|
@ -9,7 +9,7 @@ use context::HttpContext;
|
|||
use resource::Reply;
|
||||
use payload::Payload;
|
||||
use httprequest::HttpRequest;
|
||||
use httpmessage::HttpResponse;
|
||||
use httpresponse::HttpResponse;
|
||||
|
||||
#[doc(hidden)]
|
||||
#[derive(Debug)]
|
||||
|
|
|
@ -13,7 +13,7 @@ use tokio_core::net::TcpStream;
|
|||
use date;
|
||||
use route::Frame;
|
||||
use httprequest::HttpRequest;
|
||||
use httpmessage::{Body, HttpResponse};
|
||||
use httpresponse::{Body, HttpResponse};
|
||||
|
||||
type FrameStream = Stream<Item=Frame, Error=io::Error>;
|
||||
const AVERAGE_HEADER_SIZE: usize = 30; // totally scientific
|
||||
|
|
|
@ -75,7 +75,7 @@ use route::Route;
|
|||
use payload::Payload;
|
||||
use httpcodes::{HTTPBadRequest, HTTPMethodNotAllowed};
|
||||
use httprequest::HttpRequest;
|
||||
use httpmessage::{Body, ConnectionType, HttpResponse};
|
||||
use httpresponse::{Body, ConnectionType, HttpResponse};
|
||||
|
||||
use wsframe;
|
||||
use wsproto::*;
|
||||
|
|
Loading…
Reference in a new issue