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