pub struct HttpModules { /* private fields */ }
Expand description
The object to hold multiple http modules
Implementations§
Source§impl HttpModules
impl HttpModules
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new HttpModules
Sourcepub fn add_module(&mut self, builder: ModuleBuilder)
pub fn add_module(&mut self, builder: ModuleBuilder)
Add a new ModuleBuilder to HttpModules
Each type of HttpModule can be only added once.
§Panic
Panic if any HttpModule is added more than once.
Sourcepub fn build_ctx(&self) -> HttpModuleCtx
pub fn build_ctx(&self) -> HttpModuleCtx
Build the contexts of all the modules added to this HttpModules
Auto Trait Implementations§
impl !Freeze for HttpModules
impl !RefUnwindSafe for HttpModules
impl Send for HttpModules
impl Sync for HttpModules
impl Unpin for HttpModules
impl !UnwindSafe for HttpModules
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more