Struct webframework::prelude::Request
source · pub struct Request { /* private fields */ }
Implementations
sourceimpl Request
impl Request
pub fn from_req(
id: Uuid,
log: Logger<Arc<dyn SendSyncRefUnwindSafeDrain<Ok = (), Err = NeverStruct> + 'static>>,
req: Request<Body>
) -> impl Future<Item = Request, Error = Error> + Send
pub fn uri(&self) -> &Uri
pub fn path(&self) -> &str
pub fn method(&self) -> &Method
pub fn headers(&self) -> &HeaderMap<HeaderValue>
pub fn log(
&self
) -> &Logger<Arc<dyn SendSyncRefUnwindSafeDrain<Ok = (), Err = NeverStruct> + 'static>>
pub fn id(&self) -> &Uuid
pub fn body(&self) -> &[u8] ⓘ
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more