move common headers to actix-web/http

This commit is contained in:
ibraheemdev 2021-03-21 11:40:03 -04:00
parent 303b718c62
commit db2b062c13
25 changed files with 3 additions and 6 deletions

2
src/http/mod.rs Normal file
View File

@ -0,0 +1,2 @@
pub mod header;
pub use actix_http::http::*;

View File

@ -84,6 +84,7 @@ pub mod error;
mod extract; mod extract;
pub mod guard; pub mod guard;
mod handler; mod handler;
pub mod http;
mod info; mod info;
pub mod middleware; pub mod middleware;
mod request; mod request;
@ -117,11 +118,6 @@ pub use crate::server::HttpServer;
// TODO: is exposing the error directly really needed // TODO: is exposing the error directly really needed
pub use crate::types::{Either, EitherExtractError}; pub use crate::types::{Either, EitherExtractError};
pub mod http {
pub use crate::types::header;
pub use actix_http::http::*;
}
pub mod dev { pub mod dev {
//! The `actix-web` prelude for library developers //! The `actix-web` prelude for library developers
//! //!

View File

@ -3,7 +3,6 @@
// TODO: review visibility // TODO: review visibility
mod either; mod either;
pub(crate) mod form; pub(crate) mod form;
pub mod header;
pub(crate) mod json; pub(crate) mod json;
mod path; mod path;
pub(crate) mod payload; pub(crate) mod payload;