pub struct RequestHeaders<'a> {
pub cookie: Option<&'a str>,
pub accept_language: Option<&'a str>,
}Expand description
The headers of a browser’s request that change how the server renders a page, for
ServerState::request_with_headers.
Fields§
Cookie. It goes out with the SSR fetches to the server’s own origin, and the cookies
named with MountConfigBuilder::ssr_cookie are
what get_driver().cookie_get() gives the app.
accept_language: Option<&'a str>Accept-Language: what get_driver().languages() gives the app.
Trait Implementations§
Source§impl<'a> Clone for RequestHeaders<'a>
impl<'a> Clone for RequestHeaders<'a>
impl<'a> Copy for RequestHeaders<'a>
Source§impl<'a> Debug for RequestHeaders<'a>
impl<'a> Debug for RequestHeaders<'a>
Auto Trait Implementations§
impl<'a> Forget for RequestHeaders<'a>
impl<'a> Freeze for RequestHeaders<'a>
impl<'a> Move for RequestHeaders<'a>
impl<'a> RefUnwindSafe for RequestHeaders<'a>
impl<'a> Send for RequestHeaders<'a>
impl<'a> Sync for RequestHeaders<'a>
impl<'a> Unpin for RequestHeaders<'a>
impl<'a> UnsafeUnpin for RequestHeaders<'a>
impl<'a> UnwindSafe for RequestHeaders<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more