#include <HttpCompat.h>
Static Public Member Functions | |
static void | parse_tok_list (StrList *list, int trim_quotes, const char *comma_list_str, int comma_list_len, char tok) |
static void | parse_tok_list (StrList *list, int trim_quotes, const char *comma_list_str, char tok) |
static bool | lookup_param_in_strlist (StrList *param_list, const char *param_name, char *param_val, int param_val_length) |
static bool | lookup_param_in_semicolon_string (const char *semicolon_string, int semicolon_string_len, const char *param_name, char *param_val, int param_val_length) |
static void | parse_mime_type (const char *mime_string, char *type, char *subtype, int type_len, int subtype_len) |
static void | parse_mime_type_with_len (const char *mime_string, int mime_string_len, char *type, char *subtype, int type_len, int subtype_len) |
static bool | do_header_values_rfc2068_14_43_match (MIMEField *hv1, MIMEField *hv2) |
static float | find_Q_param_in_strlist (StrList *strlist) |
static float | match_accept_language (const char *lang_str, int lang_len, StrList *acpt_lang_list, int *matching_length, int *matching_index, bool ignore_wildcards=false) |
static float | match_accept_charset (const char *charset_str, int charset_len, StrList *acpt_charset_list, int *matching_index, bool ignore_wildcards=false) |
static const char * | determine_set_by_language (RawHashTable *table_of_sets, StrList *acpt_language_list, StrList *acpt_charset_list, float *Q_best_ptr, int *La_best_ptr, int *Lc_best_ptr, int *I_best_ptr) |
static void | parse_comma_list (StrList *list, const char *comma_list_str) |
static void | parse_comma_list (StrList *list, const char *comma_list_str, int comma_list_len) |
static void | parse_semicolon_list (StrList *list, const char *comma_list_str) |
static void | parse_semicolon_list (StrList *list, const char *comma_list_str, int comma_list_len) |
Definition at line 42 of file HttpCompat.h.
const char * HttpCompat::determine_set_by_language | ( | RawHashTable * | table_of_sets, | |
StrList * | acpt_language_list, | |||
StrList * | acpt_charset_list, | |||
float * | Q_best_ptr, | |||
int * | La_best_ptr, | |||
int * | Lc_best_ptr, | |||
int * | I_best_ptr | |||
) | [static] |
Definition at line 704 of file HttpCompat.cc.
References HttpBodySetRawData::content_charset, HttpBodySetRawData::content_language, StrList::count, Debug, RawHashTable::firstBinding(), RawHashTable::getKeyFromBinding(), RawHashTable::getValueFromBinding(), match_accept_charset(), match_accept_language(), min(), RawHashTable::nextBinding(), and HttpBodySetRawData::table_of_pages.
Definition at line 415 of file HttpCompat.cc.
References HdrCsvIter::count_values(), HdrCsvIter::get_first(), HdrCsvIter::get_next(), and ParseRules::strncasecmp_eow().
Referenced by HttpTransactCache::CalcVariability().
float HttpCompat::find_Q_param_in_strlist | ( | StrList * | strlist | ) | [static] |
Definition at line 456 of file HttpCompat.cc.
References lookup_param_in_strlist().
Referenced by HttpTransactCache::calculate_quality_of_accept_charset_match(), HttpTransactCache::calculate_quality_of_accept_match(), match_accept_charset(), match_accept_content_encoding(), match_accept_content_language(), match_accept_language(), and HttpTransactCache::match_gzip().
bool HttpCompat::lookup_param_in_semicolon_string | ( | const char * | semicolon_string, | |
int | semicolon_string_len, | |||
const char * | param_name, | |||
char * | param_val, | |||
int | param_val_length | |||
) | [static] |
Definition at line 266 of file HttpCompat.cc.
References lookup_param_in_strlist(), and parse_semicolon_list().
Referenced by HttpTransactCache::calculate_quality_of_accept_charset_match().
bool HttpCompat::lookup_param_in_strlist | ( | StrList * | param_list, | |
const char * | param_name, | |||
char * | param_val, | |||
int | param_val_length | |||
) | [static] |
Definition at line 196 of file HttpCompat.cc.
References StrList::head, ParseRules::ink_tolower(), ParseRules::is_ws(), is_ws(), Str::next, and Str::str.
Referenced by find_Q_param_in_strlist(), and lookup_param_in_semicolon_string().
float HttpCompat::match_accept_charset | ( | const char * | charset_str, | |
int | charset_len, | |||
StrList * | acpt_charset_list, | |||
int * | matching_index, | |||
bool | ignore_wildcards = false | |||
) | [static] |
Definition at line 627 of file HttpCompat.cc.
References StrList::count, find_Q_param_in_strlist(), StrList::head, Str::len, Str::next, parse_semicolon_list(), and Str::str.
Referenced by determine_set_by_language().
float HttpCompat::match_accept_language | ( | const char * | lang_str, | |
int | lang_len, | |||
StrList * | acpt_lang_list, | |||
int * | matching_length, | |||
int * | matching_index, | |||
bool | ignore_wildcards = false | |||
) | [static] |
Definition at line 511 of file HttpCompat.cc.
References StrList::count, does_language_range_match(), find_Q_param_in_strlist(), StrList::head, Str::len, Str::next, parse_semicolon_list(), and Str::str.
Referenced by determine_set_by_language().
static void HttpCompat::parse_comma_list | ( | StrList * | list, | |
const char * | comma_list_str, | |||
int | comma_list_len | |||
) | [inline, static] |
Definition at line 79 of file HttpCompat.h.
References parse_tok_list().
static void HttpCompat::parse_comma_list | ( | StrList * | list, | |
const char * | comma_list_str | |||
) | [inline, static] |
Definition at line 74 of file HttpCompat.h.
References parse_tok_list().
Referenced by HttpTransactCache::CalcVariability(), do_strings_match_strongly(), do_strings_match_weakly(), and HttpTransactHeaders::remove_privacy_headers_from_request().
void HttpCompat::parse_mime_type | ( | const char * | mime_string, | |
char * | type, | |||
char * | subtype, | |||
int | type_len, | |||
int | subtype_len | |||
) | [static] |
Definition at line 293 of file HttpCompat.cc.
References is_ws().
Referenced by HttpTransactCache::calculate_quality_of_accept_match().
void HttpCompat::parse_mime_type_with_len | ( | const char * | mime_string, | |
int | mime_string_len, | |||
char * | type, | |||
char * | subtype, | |||
int | type_len, | |||
int | subtype_len | |||
) | [static] |
Definition at line 341 of file HttpCompat.cc.
References is_ws(), and ParseRules::is_ws().
Referenced by HttpTransactCache::CalcVariability().
static void HttpCompat::parse_semicolon_list | ( | StrList * | list, | |
const char * | comma_list_str, | |||
int | comma_list_len | |||
) | [inline, static] |
Definition at line 89 of file HttpCompat.h.
References parse_tok_list().
static void HttpCompat::parse_semicolon_list | ( | StrList * | list, | |
const char * | comma_list_str | |||
) | [inline, static] |
Definition at line 84 of file HttpCompat.h.
References parse_tok_list().
Referenced by HttpTransactCache::calculate_quality_of_accept_charset_match(), HttpTransactCache::calculate_quality_of_accept_match(), lookup_param_in_semicolon_string(), match_accept_charset(), match_accept_content_encoding(), match_accept_content_language(), match_accept_language(), and HttpTransactCache::match_gzip().
void HttpCompat::parse_tok_list | ( | StrList * | list, | |
int | trim_quotes, | |||
const char * | comma_list_str, | |||
char | tok | |||
) | [static] |
Definition at line 45 of file HttpCompat.cc.
References parse_tok_list().
void HttpCompat::parse_tok_list | ( | StrList * | list, | |
int | trim_quotes, | |||
const char * | comma_list_str, | |||
int | comma_list_len, | |||
char | tok | |||
) | [static] |
Definition at line 53 of file HttpCompat.cc.
References StrList::append_string(), ink_assert, is_unquoted_separator, is_ws(), ParseRules::is_ws(), and NUL.
Referenced by PrefetchBlaster::handleCookieHeaders(), isCookieUnique(), mime_field_value_delete_comma_val(), mime_field_value_extend_comma_val(), mime_field_value_get_comma_list(), mime_field_value_insert_comma_val(), mime_field_value_set_comma_val(), parse_comma_list(), parse_semicolon_list(), and parse_tok_list().