pub struct Request { /* private fields */ }
Expand description
Structure for getting data into a funcktion.
The Request is normally constructed automatically by the funck server, altough it can be useful
to use the struct directly in unit tests. A Request is mainly composed of two things:
a body (As Vec<u8>
) and metadata (As HashMap<String, String>
).
When a funcktion is exposed as an HTTP route, the headers of the request are converted by the server into request metadata.
Implementations§
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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