1
0
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:
Nikolay Kim 2019-03-24 11:32:30 -07:00
parent 307b2e5b0e
commit ede32c8b3f
2 changed files with 3 additions and 2 deletions

View File

@ -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>>>>,

View File

@ -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")]