pub fn default() -> CorsFactory {
        let inner = Inner {
            origins: AllOrSome::default(),
            origins_str: None,
            methods: HashSet::from_iter(
                vec![
                    Method::GET,
                    Method::HEAD,
                    Method::POST,
                    Method::OPTIONS,
                    Method::PUT,
                    Method::PATCH,
                    Method::DELETE,
                ]
                .into_iter(),
            ),
            headers: AllOrSome::All,
            expose_hdrs: None,
            max_age: None,
            preflight: true,
            send_wildcard: false,
            supports_credentials: false,
            vary_header: true,
        };
        CorsFactory {
            inner: Rc::new(inner),
        }
    }
/// Build a CORS middleware with default settings.
Build a CORS middleware with default settings.
Build a CORS middleware with default settings .
pub fn default() -> CorsFactory {
        let inner = Inner {
            origins: AllOrSome::default(),
            origins_str: None,
            methods: HashSet::from_iter(
                vec![
                    Method::GET,
                    Method::HEAD,
                    Method::POST,
                    Method::OPTIONS,
                    Method::PUT,
                    Method::PATCH,
                    Method::DELETE,
                ]
                .into_iter(),
            ),
            headers: AllOrSome::All,
            expose_hdrs: None,
            max_age: None,
            preflight: true,
            send_wildcard: false,
            supports_credentials: false,
            vary_header: true,
        };
        CorsFactory {
            inner: Rc::new(inner),
        }
    }
pub fn default ( ) -> CorsFactory { let inner = Inner { origins : AllOrSome :: default ( ) , origins_str : None , methods : HashSet :: from_iter ( vec ! [ Method GET Method HEAD Method POST Method OPTIONS Method PUT Method PATCH Method DELETE ] . into_iter ( ) , ) , headers : AllOrSome :: All , expose_hdrs : None , max_age : None , preflight : true , send_wildcard : false , supports_credentials : false , vary_header : true , } ; CorsFactory { inner : Rc :: new ( inner ) , } }
Build a CORS middleware with default settings.
Build a CORS middleware with default settings .