struct
Request
pub struct Request {
pub method: String,
pub path: String,
pub headers: Vec<(String, String)>,
}An HTTP request, as the server reads it: its method, path (with the query) and headers.
Fields
Methods
accepts_encoding
pub fn accepts_encoding(&self, encoding: &str) -> boolWhether Accept-Encoding allows encoding (q=0 means refused).