[−][src]Struct sapper::Request
Sapper request struct
Methods
impl<'a, 'b: 'a> SapperRequest<'a, 'b>
[src]
pub fn new(req: Box<HyperRequest<'a, 'b>>) -> SapperRequest<'a, 'b>
[src]
constructor
pub fn remote_addr(&self) -> SocketAddr
[src]
get remote ip address
pub fn method(&self) -> &Method
[src]
get http method
pub fn version(&self) -> HttpVersion
[src]
get http version
pub fn headers(&self) -> &Headers
[src]
get http headers referrence
pub fn uri(&self) -> (String, Option<String>)
[src]
get request path, and query parts
pub fn body(&mut self) -> Option<Vec<u8>>
[src]
get the raw body vec of this request
pub fn ext(&self) -> &TypeMap
[src]
get request struct ext ref
pub fn ext_mut(&mut self) -> &mut TypeMap
[src]
get request struct ext mut ref
Auto Trait Implementations
impl<'a, 'b> !Send for SapperRequest<'a, 'b>
impl<'a, 'b> !Sync for SapperRequest<'a, 'b>
impl<'a, 'b> Unpin for SapperRequest<'a, 'b>
impl<'a, 'b> !UnwindSafe for SapperRequest<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for SapperRequest<'a, 'b>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> UnsafeAny for T where
T: Any,
T: Any,