pub struct CorsPreflightResponse {
pub status_code: u16,
pub headers: BTreeMap<String, String>,
pub body: String,
}Expand description
The reference CorsPreflightResponse: the status, the header set, and
the plain-text body the preflight answer renders.
Fields§
§status_code: u16200 for an allowed preflight, 400 for a disallowed one.
headers: BTreeMap<String, String>The CORS headers the answer carries (Vary, allow-origin,
allow-methods, max-age, credentials, allow-headers).
body: String"OK" allowed, "Disallowed CORS: <failures>" otherwise.
Trait Implementations§
Source§impl Clone for CorsPreflightResponse
impl Clone for CorsPreflightResponse
Source§impl Debug for CorsPreflightResponse
impl Debug for CorsPreflightResponse
impl Eq for CorsPreflightResponse
Source§impl PartialEq for CorsPreflightResponse
impl PartialEq for CorsPreflightResponse
impl StructuralPartialEq for CorsPreflightResponse
Auto Trait Implementations§
impl Freeze for CorsPreflightResponse
impl RefUnwindSafe for CorsPreflightResponse
impl Send for CorsPreflightResponse
impl Sync for CorsPreflightResponse
impl Unpin for CorsPreflightResponse
impl UnsafeUnpin for CorsPreflightResponse
impl UnwindSafe for CorsPreflightResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.