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

#include <HttpHeaderTools.h>

Collaboration diagram for HeaderManglers:

Classes

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, NoCaseLessThanManglersByName
 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

◆ ManglersByName

typedef std::map<std::string, headerMangler, NoCaseLessThan> HeaderManglers::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.

References all, and known.

◆ ~HeaderManglers()

HeaderManglers::~HeaderManglers ( )

Definition at line 403 of file HttpHeaderTools.cc.

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

◆ HeaderManglers() [2/2]

HeaderManglers::HeaderManglers ( const HeaderManglers )
private

Member Function Documentation

◆ dumpAccess()

void HeaderManglers::dumpAccess ( StoreEntry entry,
const char *  optionName 
) const

◆ dumpReplacement()

void HeaderManglers::dumpReplacement ( StoreEntry entry,
const char *  optionName 
) const

◆ find()

const headerMangler * HeaderManglers::find ( const HttpHeaderEntry e) const

◆ operator=()

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

Member Data Documentation

◆ all

headerMangler HeaderManglers::all
private

◆ custom

ManglersByName HeaderManglers::custom
private

Definition at line 85 of file HttpHeaderTools.h.

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

◆ known

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

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors