mirror of
https://github.com/actix/actix-web.git
synced 2024-12-27 10:30:33 +00:00
reduce -http re-exports in awc
This commit is contained in:
parent
3756dfc2ce
commit
01cbfc5724
3 changed files with 15 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
|||
//! HTTP client errors
|
||||
|
||||
// TODO: figure out how best to expose http::Error vs actix_http::Error
|
||||
pub use actix_http::{
|
||||
error::{HttpError, PayloadError},
|
||||
header::HeaderValue,
|
||||
|
|
|
@ -105,6 +105,11 @@
|
|||
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
|
||||
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
|
||||
|
||||
pub use actix_http::body;
|
||||
|
||||
#[cfg(feature = "cookies")]
|
||||
pub use cookie;
|
||||
|
||||
mod any_body;
|
||||
mod builder;
|
||||
mod client;
|
||||
|
@ -118,10 +123,14 @@ mod sender;
|
|||
pub mod test;
|
||||
pub mod ws;
|
||||
|
||||
// TODO: hmmmmmm
|
||||
pub use actix_http as http;
|
||||
#[cfg(feature = "cookies")]
|
||||
pub use cookie;
|
||||
pub mod http {
|
||||
//! Various HTTP related types.
|
||||
|
||||
// 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::client::{Client, Connector};
|
||||
|
|
|
@ -2,4 +2,5 @@
|
|||
|
||||
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};
|
||||
|
|
Loading…
Reference in a new issue