pub struct Request { /* private fields */ }
Expand description
Stores a HTTP request
Implementations§
source§impl Request
impl Request
sourcepub fn path_and_query(&self) -> &str
pub fn path_and_query(&self) -> &str
The path including the query part
sourcepub fn header(&self, header_name: &str) -> Vec<&str>
pub fn header(&self, header_name: &str) -> Vec<&str>
Retrieves all the header values for the given header field name
sourcepub fn has_header(&self, header_name: &str) -> bool
pub fn has_header(&self, header_name: &str) -> bool
Checks whether the provided header field exists