Struct sentry::protocol::Request
[−]
[src]
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: LinkedHashMap<String, String, RandomState>,
pub env: LinkedHashMap<String, String, RandomState>,
pub other: LinkedHashMap<String, Value, RandomState>,
}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: LinkedHashMap<String, String, RandomState>
HTTP request headers.
env: LinkedHashMap<String, String, RandomState>
Optionally a CGI/WSGI etc. environment dictionary.
other: LinkedHashMap<String, Value, RandomState>
Additional unhandled keys.
Trait Implementations
impl PartialEq<Request> for Request[src]
fn eq(&self, __arg_0: &Request) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Request) -> bool[src]
This method tests for !=.
impl<'de> Deserialize<'de> for Request where
Request: Default, [src]
Request: Default,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Request, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
__deserializer: __D
) -> Result<Request, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Clone for Request[src]
fn clone(&self) -> Request[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Request[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more
impl Serialize for Request[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, [src]
&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