pub trait RequestExt {
// Required methods
fn get_request_id(&self) -> String;
fn get_request_header(&self, key: &str) -> Option<String>;
fn set_request_header(&mut self, key: &str, value: &str);
fn all_request_headers(&self) -> HashMap<String, String>;
fn get_path(&self) -> String;
fn set_path(&mut self, path: &str);
fn get_method(&self) -> &Method;
fn get_host(&self) -> String;
fn route_match_key(&self) -> String;
fn query(&self) -> Option<String>;
fn is_model_request(&self) -> bool;
}Required Methods§
fn get_request_id(&self) -> String
fn get_request_header(&self, key: &str) -> Option<String>
fn set_request_header(&mut self, key: &str, value: &str)
fn all_request_headers(&self) -> HashMap<String, String>
fn get_path(&self) -> String
fn set_path(&mut self, path: &str)
fn get_method(&self) -> &Method
fn get_host(&self) -> String
fn route_match_key(&self) -> String
fn query(&self) -> Option<String>
fn is_model_request(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".