pub struct Request {
pub content_length: Option<u64>,
pub content_type: Option<String>,
pub time: i64,
pub method: String,
pub path: String,
pub body: Option<String>,
pub headers: HashMap<String, Vec<String>>,
pub query_string: HashMap<String, Vec<String>>,
}Expand description
A record of an HTTP request made to the server.
Fields§
§content_length: Option<u64>§content_type: Option<String>§time: i64§method: String§path: String§body: Option<String>§headers: HashMap<String, Vec<String>>§query_string: HashMap<String, Vec<String>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Request
impl StructuralPartialEq for Request
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