pub struct HttpRequest { /* private fields */ }
Implementations§
Source§impl HttpRequest
impl HttpRequest
pub fn args<T>(self, value: T) -> Self
pub fn http_headers<T>(self, value: T) -> Self
pub fn http_method<T>(self, value: T) -> Self
pub fn length<T>(self, value: T) -> Self
pub fn referrer<T>(self, value: T) -> Self
pub fn uid<T>(self, value: T) -> Self
pub fn url<T>(self, value: T) -> Self
pub fn user_agent<T>(self, value: T) -> Self
pub fn version<T>(self, value: T) -> Self
pub fn x_forwarded_for<T>(self, value: T) -> Self
Trait Implementations§
Source§impl Clone for HttpRequest
impl Clone for HttpRequest
Source§fn clone(&self) -> HttpRequest
fn clone(&self) -> HttpRequest
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 HttpRequest
impl Debug for HttpRequest
Source§impl Default for HttpRequest
impl Default for HttpRequest
Source§impl From<HttpRequest> for HttpRequest
impl From<HttpRequest> for HttpRequest
Source§fn from(value: HttpRequest) -> Self
fn from(value: HttpRequest) -> Self
Converts to this type from the input type.
Source§impl TryFrom<HttpRequest> for HttpRequest
impl TryFrom<HttpRequest> for HttpRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: HttpRequest) -> Result<Self, ConversionError>
fn try_from(value: HttpRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for HttpRequest
impl RefUnwindSafe for HttpRequest
impl Send for HttpRequest
impl Sync for HttpRequest
impl Unpin for HttpRequest
impl UnwindSafe for HttpRequest
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