Struct ntex_cors::CorsFactory
source · pub struct CorsFactory<Err> { /* private fields */ }
Expand description
Middleware
for Cross-origin resource sharing support
The Cors struct contains the settings for CORS requests to be validated and for responses to be generated.
Trait Implementations§
source§impl<S, Err> Middleware<S> for CorsFactory<Err>where
S: Service<WebRequest<Err>, Response = WebResponse>,
impl<S, Err> Middleware<S> for CorsFactory<Err>where
S: Service<WebRequest<Err>, Response = WebResponse>,
Auto Trait Implementations§
impl<Err> !RefUnwindSafe for CorsFactory<Err>
impl<Err> !Send for CorsFactory<Err>
impl<Err> !Sync for CorsFactory<Err>
impl<Err> Unpin for CorsFactory<Err>where
Err: Unpin,
impl<Err> !UnwindSafe for CorsFactory<Err>
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