Skip to main content

RequestExt

Trait RequestExt 

Source
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§

Source

fn get_request_id(&self) -> String

Source

fn get_request_header(&self, key: &str) -> Option<String>

Source

fn set_request_header(&mut self, key: &str, value: &str)

Source

fn all_request_headers(&self) -> HashMap<String, String>

Source

fn get_path(&self) -> String

Source

fn set_path(&mut self, path: &str)

Source

fn get_method(&self) -> &Method

Source

fn get_host(&self) -> String

Source

fn route_match_key(&self) -> String

Source

fn query(&self) -> Option<String>

Source

fn is_model_request(&self) -> bool

Implementations on Foreign Types§

Source§

impl RequestExt for Parts

Implementors§