mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-27 17:52:56 +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 actix_service::{Service, Transform};
|
||||
@ -106,6 +107,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub struct ErrorHandlersMiddleware<S, B> {
|
||||
service: S,
|
||||
handlers: Rc<HashMap<StatusCode, Box<ErrorHandler<B>>>>,
|
||||
|
@ -6,11 +6,10 @@ pub use self::compress::Compress;
|
||||
|
||||
pub mod cors;
|
||||
mod defaultheaders;
|
||||
mod errhandlers;
|
||||
pub mod errhandlers;
|
||||
mod logger;
|
||||
|
||||
pub use self::defaultheaders::DefaultHeaders;
|
||||
pub use self::errhandlers::{ErrorHandlerResponse, ErrorHandlers};
|
||||
pub use self::logger::Logger;
|
||||
|
||||
#[cfg(feature = "cookies")]
|
||||
|
Loading…
Reference in New Issue
Block a user