A collection of headerMangler objects for a given message kind. More...
#include <HttpHeaderTools.h>
Classes | |
class | NoCaseLessThan |
Public Member Functions | |
HeaderManglers () | |
~HeaderManglers () | |
const headerMangler * | find (const HttpHeaderEntry &e) const |
returns a header mangler for field e or nil if none was specified More... | |
headerMangler * | track (const char *name) |
returns a mangler for the named header (known or custom) More... | |
void | setReplacement (const char *name, const char *replacementValue) |
updates mangler for the named header with a replacement value More... | |
void | dumpAccess (StoreEntry *entry, const char *optionName) const |
report the *_header_access part of the configuration More... | |
void | dumpReplacement (StoreEntry *entry, const char *optionName) const |
report the *_header_replace part of the configuration More... | |
Private Types | |
typedef std::map< std::string, headerMangler, NoCaseLessThan > | ManglersByName |
a name:mangler map; optimize: use unordered map or some such More... | |
Private Member Functions | |
HeaderManglers (const HeaderManglers &) | |
HeaderManglers & | operator= (const HeaderManglers &) |
Private Attributes | |
headerMangler | known [static_cast< int >(Http::HdrType::enumEnd_)] |
one mangler for each known header More... | |
ManglersByName | custom |
one mangler for each custom header More... | |
headerMangler | all |
configured if some mangling ACL applies to all header names More... | |
Detailed Description
Definition at line 47 of file HttpHeaderTools.h.
Member Typedef Documentation
◆ ManglersByName
|
private |
Definition at line 79 of file HttpHeaderTools.h.
Constructor & Destructor Documentation
◆ HeaderManglers() [1/2]
HeaderManglers::HeaderManglers | ( | ) |
Definition at line 397 of file HttpHeaderTools.cc.
◆ ~HeaderManglers()
HeaderManglers::~HeaderManglers | ( | ) |
Definition at line 403 of file HttpHeaderTools.cc.
References all, custom, header_mangler_clean(), and known.
◆ HeaderManglers() [2/2]
|
private |
Member Function Documentation
◆ dumpAccess()
void HeaderManglers::dumpAccess | ( | StoreEntry * | entry, |
const char * | optionName | ||
) | const |
Definition at line 415 of file HttpHeaderTools.cc.
References all, custom, header_mangler_dump_access(), Http::HeaderLookupTable, and known.
Referenced by dump_http_header_access().
◆ dumpReplacement()
void HeaderManglers::dumpReplacement | ( | StoreEntry * | entry, |
const char * | optionName | ||
) | const |
Definition at line 427 of file HttpHeaderTools.cc.
References all, custom, header_mangler_dump_replacement(), Http::HeaderLookupTable, and known.
Referenced by dump_http_header_replace().
◆ find()
const headerMangler * HeaderManglers::find | ( | const HttpHeaderEntry & | e | ) | const |
Definition at line 469 of file HttpHeaderTools.cc.
References headerMangler::access_list, all, Http::any_HdrType_enum_value(), SBuf::c_str(), custom, HttpHeaderEntry::id, known, HttpHeaderEntry::name, and Http::OTHER.
Referenced by httpHdrMangle().
◆ operator=()
|
private |
◆ setReplacement()
void HeaderManglers::setReplacement | ( | const char * | name, |
const char * | replacementValue | ||
) |
Definition at line 458 of file HttpHeaderTools.cc.
References headerMangler::replacement, safe_free, track(), and xstrdup.
Referenced by parse_http_header_replace().
◆ track()
headerMangler * HeaderManglers::track | ( | const char * | name | ) |
Definition at line 441 of file HttpHeaderTools.cc.
References all, Http::BAD_HDR, custom, Http::HeaderLookupTable, Http::HeaderTableRecord::id, known, Http::HeaderLookupTable_t::lookup(), and Http::OTHER.
Referenced by parse_http_header_access(), and setReplacement().
Member Data Documentation
◆ all
|
private |
Definition at line 88 of file HttpHeaderTools.h.
Referenced by HeaderManglers(), ~HeaderManglers(), dumpAccess(), dumpReplacement(), find(), and track().
◆ custom
|
private |
Definition at line 85 of file HttpHeaderTools.h.
Referenced by ~HeaderManglers(), dumpAccess(), dumpReplacement(), find(), and track().
◆ known
|
private |
Definition at line 82 of file HttpHeaderTools.h.
Referenced by HeaderManglers(), ~HeaderManglers(), dumpAccess(), dumpReplacement(), find(), and track().
The documentation for this class was generated from the following files:
- src/HttpHeaderTools.h
- src/HttpHeaderTools.cc