Struct tinyhttp_internal::request::Request
source · [−]pub struct Request { /* private fields */ }
Expand description
Struct containing data on a single request.
parsed_body which is a Option
body is used when the body of the request is not a String
Implementations
sourceimpl Request
impl Request
pub fn get_raw_body(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn get_parsed_body(&self) -> Option<String>
pub fn get_headers(&self) -> HashMap<String, String>
pub fn get_status_line(&self) -> Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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