pub struct LiveHttpRequest {Show 15 fields
pub method: HttpMethod,
pub host: String,
pub path: String,
pub headers: Headers,
pub query_params: RequestFieldMap,
pub form_fields: RequestFieldMap,
pub content_type: Option<String>,
pub raw_body: Vec<u8>,
pub scheme: String,
pub forwarded_proto: Option<String>,
pub request_id: Option<String>,
pub session_cookie: Option<String>,
pub flash_cookie: Option<String>,
pub csrf_token: Option<String>,
pub maintenance_bypass_token: Option<String>,
}Fields§
§method: HttpMethod§host: String§path: String§headers: Headers§query_params: RequestFieldMap§form_fields: RequestFieldMap§content_type: Option<String>§raw_body: Vec<u8>§scheme: String§forwarded_proto: Option<String>§request_id: Option<String>§csrf_token: Option<String>§maintenance_bypass_token: Option<String>Implementations§
Source§impl LiveHttpRequest
impl LiveHttpRequest
pub fn from_request( request: &Request<Body>, browser: &BrowserSecurityServices, server: &ServerConfig, remote_addr: Option<SocketAddr>, ) -> Result<Self, RuntimeServerError>
pub fn into_request_input(self) -> Result<RequestInput, RuntimeServerError>
Trait Implementations§
Source§impl Clone for LiveHttpRequest
impl Clone for LiveHttpRequest
Source§fn clone(&self) -> LiveHttpRequest
fn clone(&self) -> LiveHttpRequest
Returns a duplicate 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 moreSource§impl Debug for LiveHttpRequest
impl Debug for LiveHttpRequest
Source§impl PartialEq for LiveHttpRequest
impl PartialEq for LiveHttpRequest
impl Eq for LiveHttpRequest
impl StructuralPartialEq for LiveHttpRequest
Auto Trait Implementations§
impl Freeze for LiveHttpRequest
impl RefUnwindSafe for LiveHttpRequest
impl Send for LiveHttpRequest
impl Sync for LiveHttpRequest
impl Unpin for LiveHttpRequest
impl UnsafeUnpin for LiveHttpRequest
impl UnwindSafe for LiveHttpRequest
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§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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