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]

Formats the value using the given formatter. Read more

impl<S> Middleware<S> for CorsMiddleware where
    S: HttpService
[src]

The wrapped service request type

The wrapped service response type

The wrapped service's error type

The wrapped service

Wrap the given service with the middleware, returning a new service that has been decorated with the middleware. Read more

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 Sync for CorsMiddleware