A collection of headerMangler objects for a given message kind. More...

#include <HttpHeaderTools.h>

Collaboration diagram for HeaderManglers:


class  NoCaseLessThan

Public Member Functions

 HeaderManglers ()
 ~HeaderManglers ()
const headerManglerfind (const HttpHeaderEntry &e) const
 returns a header mangler for field e or nil if none was specified More...
headerManglertrack (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
 a name:mangler map; optimize: use unordered map or some such More...

Private Member Functions

 HeaderManglers (const HeaderManglers &)
HeaderManglersoperator= (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

typedef std::map<std::string, headerMangler, NoCaseLessThan> HeaderManglers::ManglersByName

Definition at line 79 of file HttpHeaderTools.h.

Constructor & Destructor Documentation

HeaderManglers::HeaderManglers ( )

Definition at line 376 of file HttpHeaderTools.cc.

References all, and known.

HeaderManglers::~HeaderManglers ( )

Definition at line 382 of file HttpHeaderTools.cc.

References all, custom, header_mangler_clean(), i, and known.

HeaderManglers::HeaderManglers ( const HeaderManglers )

Member Function Documentation

void HeaderManglers::dumpAccess ( StoreEntry entry,
const char *  optionName 
) const
void HeaderManglers::dumpReplacement ( StoreEntry entry,
const char *  optionName 
) const
const headerMangler * HeaderManglers::find ( const HttpHeaderEntry e) const
HeaderManglers& HeaderManglers::operator= ( const HeaderManglers )
void HeaderManglers::setReplacement ( const char *  name,
const char *  replacementValue 

Definition at line 437 of file HttpHeaderTools.cc.

References headerMangler::replacement, safe_free, track(), and xstrdup.

Referenced by parse_http_header_replace().

Member Data Documentation

headerMangler HeaderManglers::all
ManglersByName HeaderManglers::custom

Definition at line 85 of file HttpHeaderTools.h.

Referenced by dumpAccess(), dumpReplacement(), find(), track(), and ~HeaderManglers().

headerMangler HeaderManglers::known[static_cast< int >(Http::HdrType::enumEnd_)]

The documentation for this class was generated from the following files:






Web Site Translations