Struct tower_web::middleware::cors::CorsMiddleware [−][src]
pub struct CorsMiddleware { /* fields omitted */ }Middleware providing an implementation of the CORS specification.
Trait Implementations
impl Debug for CorsMiddleware[src]
impl Debug for CorsMiddlewarefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<S> Middleware<S> for CorsMiddleware where
S: HttpService, [src]
impl<S> Middleware<S> for CorsMiddleware where
S: HttpService, type Request = Request<S::RequestBody>
The wrapped service request type
type Response = Response<Option<S::ResponseBody>>
The wrapped service response type
type Error = S::Error
The wrapped service's error type
type Service = CorsService<S>
The wrapped service
fn wrap(&self, service: S) -> Self::Service[src]
fn wrap(&self, service: S) -> Self::ServiceWrap the given service with the middleware, returning a new service that has been decorated with the middleware. Read more
fn chain<T>(self, middleware: T) -> Chain<Self, T> where
T: Middleware<Self::Service>,
Self: Sized, [src]
fn chain<T>(self, middleware: T) -> Chain<Self, T> where
T: Middleware<Self::Service>,
Self: Sized, Return a new Middleware instance that applies both self and middleware to services being wrapped. Read more
Auto Trait Implementations
impl Send for CorsMiddleware
impl Send for CorsMiddlewareimpl Sync for CorsMiddleware
impl Sync for CorsMiddleware