1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-02 21:39:26 +00: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")]