mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 07:53:00 +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