mirror of https://github.com/fafhrd91/actix-web
move common headers to actix-web/http
This commit is contained in:
parent
303b718c62
commit
db2b062c13
|
@ -0,0 +1,2 @@
|
||||||
|
pub mod header;
|
||||||
|
pub use actix_http::http::*;
|
|
@ -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
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue