Struct warp::filters::cors::Configured
source · struct Configured {
cors: Builder,
allowed_headers_header: AccessControlAllowHeaders,
expose_headers_header: Option<AccessControlExposeHeaders>,
methods_header: AccessControlAllowMethods,
}
Fields§
§cors: Builder
§allowed_headers_header: AccessControlAllowHeaders
§expose_headers_header: Option<AccessControlExposeHeaders>
§methods_header: AccessControlAllowMethods
Implementations§
source§impl Configured
impl Configured
fn check_request( &self, method: &Method, headers: &HeaderMap, ) -> Result<Validated, Forbidden>
fn is_method_allowed(&self, header: &HeaderValue) -> bool
fn is_header_allowed(&self, header: &str) -> bool
fn is_origin_allowed(&self, origin: &HeaderValue) -> bool
fn append_preflight_headers(&self, headers: &mut HeaderMap)
fn append_common_headers(&self, headers: &mut HeaderMap)
Trait Implementations§
source§impl Clone for Configured
impl Clone for Configured
source§fn clone(&self) -> Configured
fn clone(&self) -> Configured
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !Freeze for Configured
impl RefUnwindSafe for Configured
impl Send for Configured
impl Sync for Configured
impl Unpin for Configured
impl UnwindSafe for Configured
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