Struct docserver::defs::req_headermap::ReqHeaderMap
source · pub struct ReqHeaderMap {
pub header: HeaderMap,
pub req_path: Vec<String>,
}
Fields§
§header: HeaderMap
§req_path: Vec<String>
Implementations§
source§impl ReqHeaderMap
impl ReqHeaderMap
pub fn new(header: HeaderMap, request_path: &str) -> Self
pub fn req_end_path(req_path: &str) -> String
pub fn req_user(&self, app_dbs: &AppDBs) -> (String, UserNotifyData)
pub fn req_path_clean(&self) -> Vec<String>
pub fn req_path_contains(&self, value: &str) -> Vec<String>
pub fn auth(&self) -> String
pub fn referer(&self) -> String
pub fn internal(&self) -> String
pub fn is_browser(&self) -> bool
pub fn is_curl(&self) -> bool
pub fn is_wget(&self) -> bool
pub fn response_user_agent_html(&self) -> bool
pub fn agent(&self) -> String
pub fn lang(&self, config: &ServerConfig) -> String
sourcefn maybe_x_forwarded_for(&self) -> Option<IpAddr>
fn maybe_x_forwarded_for(&self) -> Option<IpAddr>
Tries to parse the x-real-ip
header
sourcefn maybe_x_real_ip(&self) -> Option<IpAddr>
fn maybe_x_real_ip(&self) -> Option<IpAddr>
Tries to parse the x-real-ip
header
sourcefn maybe_forwarded(&self) -> Option<IpAddr>
fn maybe_forwarded(&self) -> Option<IpAddr>
Tries to parse forwarded
headers