[−][src]Struct roa_core::Request
Http request type of roa.
Fields
method: Method
The request's method
uri: Uri
The request's URI
version: Version
The request's version
headers: HeaderMap<HeaderValue>
The request's headers
Methods
impl Request
[src]
pub fn body_stream(&mut self) -> Body
[src]
Get inner hyper body. This method will consume inner body.
pub fn body(&mut self) -> impl AsyncRead + Sync + Send + Unpin + 'static
[src]
Get inner as AsyncRead. This method will consume inner body.
Trait Implementations
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>,