[−][src]Struct lieweb::Request
Implementations
impl Request
[src]
pub fn get_request_id(&self) -> Option<&str>
[src]
impl Request
[src]
pub fn inner(&self) -> &HyperRequest
[src]
pub fn innner_mut(&mut self) -> &mut HyperRequest
[src]
pub fn headers(&self) -> &HeaderMap<HeaderValue>
[src]
pub fn headers_mut(&mut self) -> &mut HeaderMap<HeaderValue>
[src]
pub fn method(&self) -> &Method
[src]
pub fn uri(&self) -> &Uri
[src]
pub fn path(&self) -> &str
[src]
pub fn version(&self) -> Version
[src]
pub fn remote_addr(&self) -> SocketAddr
[src]
pub fn params(&self) -> &Params
[src]
pub fn get_state<T>(&self) -> Result<&T, Error> where
T: Send + Sync + 'static + Clone,
[src]
T: Send + Sync + 'static + Clone,
pub fn get_extension<T>(&self) -> Option<&T> where
T: Send + Sync + 'static + Clone,
[src]
T: Send + Sync + 'static + Clone,
pub fn get_extension_mut<T>(&mut self) -> Option<&mut T> where
T: Send + Sync + 'static + Clone,
[src]
T: Send + Sync + 'static + Clone,
pub fn insert_extension<T>(&mut self, val: T) where
T: Send + Sync + 'static + Clone,
[src]
T: Send + Sync + 'static + Clone,
pub fn get_param<T>(&self, param: &str) -> Result<T, Error> where
T: FromStr,
<T as FromStr>::Err: Error,
[src]
T: FromStr,
<T as FromStr>::Err: Error,
pub fn get_header<K>(&self, header: K) -> Result<&HeaderValue, Error> where
HeaderName: From<K>,
[src]
HeaderName: From<K>,
pub fn get_query<T: DeserializeOwned + Default>(&self) -> Result<T, Error>
[src]
pub async fn read_body<'_>(&'_ mut self) -> Result<Bytes, Error>
[src]
pub async fn read_form<T: DeserializeOwned, '_>(
&'_ mut self
) -> Result<T, Error>
[src]
&'_ mut self
) -> Result<T, Error>
pub async fn read_json<T: DeserializeOwned, '_>(
&'_ mut self
) -> Result<T, Error>
[src]
&'_ mut self
) -> Result<T, Error>
Auto Trait Implementations
impl !RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl !UnwindSafe for Request
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,