pub struct Request {
pub url: Option<Url>,
pub method: Option<String>,
pub data: Option<String>,
pub query_string: Option<String>,
pub cookies: Option<String>,
pub headers: BTreeMap<String, String, Global>,
pub env: BTreeMap<String, String, Global>,
}
Expand description
Represents http request data.
Fields§
§url: Option<Url>
The current URL of the request.
method: Option<String>
The HTTP request method.
data: Option<String>
Optionally some associated request data (human readable)
query_string: Option<String>
Optionally the encoded query string.
An encoded cookie string if available.
headers: BTreeMap<String, String, Global>
HTTP request headers.
env: BTreeMap<String, String, Global>
Optionally a CGI/WSGI etc. environment dictionary.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Request, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Request, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Request
impl Serialize for Request
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more