mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-28 01:52:57 +01:00
export errhandlers module
This commit is contained in:
parent
307b2e5b0e
commit
ede32c8b3f
@ -1,3 +1,4 @@
|
|||||||
|
/// Custom handlers service for responses.
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
||||||
use actix_service::{Service, Transform};
|
use actix_service::{Service, Transform};
|
||||||
@ -106,6 +107,7 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[doc(hidden)]
|
||||||
pub struct ErrorHandlersMiddleware<S, B> {
|
pub struct ErrorHandlersMiddleware<S, B> {
|
||||||
service: S,
|
service: S,
|
||||||
handlers: Rc<HashMap<StatusCode, Box<ErrorHandler<B>>>>,
|
handlers: Rc<HashMap<StatusCode, Box<ErrorHandler<B>>>>,
|
||||||
|
@ -6,11 +6,10 @@ pub use self::compress::Compress;
|
|||||||
|
|
||||||
pub mod cors;
|
pub mod cors;
|
||||||
mod defaultheaders;
|
mod defaultheaders;
|
||||||
mod errhandlers;
|
pub mod errhandlers;
|
||||||
mod logger;
|
mod logger;
|
||||||
|
|
||||||
pub use self::defaultheaders::DefaultHeaders;
|
pub use self::defaultheaders::DefaultHeaders;
|
||||||
pub use self::errhandlers::{ErrorHandlerResponse, ErrorHandlers};
|
|
||||||
pub use self::logger::Logger;
|
pub use self::logger::Logger;
|
||||||
|
|
||||||
#[cfg(feature = "cookies")]
|
#[cfg(feature = "cookies")]
|
||||||
|
Loading…
Reference in New Issue
Block a user