get_header_keyvalue function with short name alternative

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@838 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 19 years ago
parent 268532f59d
commit e1cb541170

@ -768,6 +768,15 @@ string get_header_param(const string& hdr_string,
return "";
}
/** get the value of key @param short_name or @param name or from the list param_hdr*/
string get_header_keyvalue(const string& param_hdr, const string& short_name, const string& name) {
string res = get_header_keyvalue(param_hdr, short_name);
if (res.length())
return res;
return get_header_keyvalue(param_hdr, name);
}
/**
* get value from parameter header with the name @param name
* while skipping escaped values

@ -269,6 +269,9 @@ string get_header_param(const string& hdr_string, const string& param_name);
/** get the value of key @param name from the list param_hdr*/
string get_header_keyvalue(const string& param_hdr, const string& name);
/** get the value of key @param short_name or @param name or from the list param_hdr*/
string get_header_keyvalue(const string& param_hdr, const string& short_name, const string& name);
/** get the value of key @param name from P-Iptel-Param header in hdrs */
string get_session_param(const string& hdrs, const string& name);

Loading…
Cancel
Save