mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-19 06:04:40 +01:00
reduce -http re-exports in awc
This commit is contained in:
parent
3756dfc2ce
commit
01cbfc5724
@ -1,5 +1,6 @@
|
|||||||
//! HTTP client errors
|
//! HTTP client errors
|
||||||
|
|
||||||
|
// TODO: figure out how best to expose http::Error vs actix_http::Error
|
||||||
pub use actix_http::{
|
pub use actix_http::{
|
||||||
error::{HttpError, PayloadError},
|
error::{HttpError, PayloadError},
|
||||||
header::HeaderValue,
|
header::HeaderValue,
|
||||||
|
@ -105,6 +105,11 @@
|
|||||||
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
|
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
|
||||||
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
|
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
|
||||||
|
|
||||||
|
pub use actix_http::body;
|
||||||
|
|
||||||
|
#[cfg(feature = "cookies")]
|
||||||
|
pub use cookie;
|
||||||
|
|
||||||
mod any_body;
|
mod any_body;
|
||||||
mod builder;
|
mod builder;
|
||||||
mod client;
|
mod client;
|
||||||
@ -118,10 +123,14 @@ mod sender;
|
|||||||
pub mod test;
|
pub mod test;
|
||||||
pub mod ws;
|
pub mod ws;
|
||||||
|
|
||||||
// TODO: hmmmmmm
|
pub mod http {
|
||||||
pub use actix_http as http;
|
//! Various HTTP related types.
|
||||||
#[cfg(feature = "cookies")]
|
|
||||||
pub use cookie;
|
// TODO: figure out how best to expose http::Error vs actix_http::Error
|
||||||
|
pub use actix_http::{
|
||||||
|
header, uri, ConnectionType, Error, Method, StatusCode, Uri, Version,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
pub use self::builder::ClientBuilder;
|
pub use self::builder::ClientBuilder;
|
||||||
pub use self::client::{Client, Connector};
|
pub use self::client::{Client, Connector};
|
||||||
|
@ -2,4 +2,5 @@
|
|||||||
|
|
||||||
pub mod header;
|
pub mod header;
|
||||||
|
|
||||||
|
// TODO: figure out how best to expose http::Error vs actix_http::Error
|
||||||
pub use actix_http::{uri, ConnectionType, Error, Method, StatusCode, Uri, Version};
|
pub use actix_http::{uri, ConnectionType, Error, Method, StatusCode, Uri, Version};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user