pub struct PreflightRequest<'a> {
pub origin: Option<&'a str>,
pub request_method: Option<&'a str>,
pub request_headers_raw: Option<&'a str>,
}Expand description
The reference build_preflight_response’s request view: the three
headers the preflight validation reads (each already extracted by the
adapter from its own header map).
Fields§
§origin: Option<&'a str>The Origin header value, if present.
request_method: Option<&'a str>The Access-Control-Request-Method value, if present.
request_headers_raw: Option<&'a str>The raw Access-Control-Request-Headers value, if present.
Trait Implementations§
Source§impl<'a> Clone for PreflightRequest<'a>
impl<'a> Clone for PreflightRequest<'a>
impl<'a> Copy for PreflightRequest<'a>
Source§impl<'a> Debug for PreflightRequest<'a>
impl<'a> Debug for PreflightRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for PreflightRequest<'a>
impl<'a> RefUnwindSafe for PreflightRequest<'a>
impl<'a> Send for PreflightRequest<'a>
impl<'a> Sync for PreflightRequest<'a>
impl<'a> Unpin for PreflightRequest<'a>
impl<'a> UnsafeUnpin for PreflightRequest<'a>
impl<'a> UnwindSafe for PreflightRequest<'a>
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