HeaderMangling.cc
Go to the documentation of this file.
26 static void httpHdrAdd(HttpHeader *heads, HttpRequest *request, const AccessLogEntryPointer &al, HeaderWithAclList &headersAdd);
37 httpHdrMangle(HttpHeaderEntry * e, HttpRequest * request, HeaderManglers *hms, const AccessLogEntryPointer &al)
82 httpHdrMangleList(HttpHeader *l, HttpRequest *request, const AccessLogEntryPointer &al, req_or_rep_t req_or_rep)
176 header_mangler_dump_replacement(entry, name, known[id], Http::HeaderLookupTable.lookup(id).name);
244 httpHdrAdd(HttpHeader *heads, HttpRequest *request, const AccessLogEntryPointer &al, HeaderWithAclList &headersAdd)
void httpHdrMangleList(HttpHeader *l, HttpRequest *request, const AccessLogEntryPointer &al, req_or_rep_t req_or_rep)
Definition: HeaderMangling.cc:82
Definition: FilledChecklist.h:33
const headerMangler * find(const HttpHeaderEntry &e) const
returns a header mangler for field e or nil if none was specified
Definition: HeaderMangling.cc:215
headerMangler known[static_cast< int >(Http::HdrType::enumEnd_)]
one mangler for each known header
Definition: HeaderMangling.h:81
headerMangler * track(const char *name)
returns a mangler for the named header (known or custom)
Definition: HeaderMangling.cc:187
bool any_HdrType_enum_value(const Http::HdrType id)
match any known header type, including OTHER and BAD
Definition: RegisteredHeaders.h:204
Definition: HttpHeader.h:50
Definition: EnumIterator.h:221
Definition: HttpRequest.h:48
headerMangler all
configured if some mangling ACL applies to all header names
Definition: HeaderMangling.h:87
static void header_mangler_clean(headerMangler &m)
Definition: HeaderMangling.cc:119
HeaderManglers * reply_header_access
reply_header_access and reply_header_replace
Definition: SquidConfig.h:463
void dump_acl_access(StoreEntry *entry, const char *name, acl_access *head)
Definition: cache_cf.cc:1510
Definition: MemBuf.h:23
A collection of headerMangler objects for a given message kind.
Definition: HeaderMangling.h:46
static int httpHdrMangle(HttpHeaderEntry *e, HttpRequest *request, HeaderManglers *hms, const AccessLogEntryPointer &al)
Definition: HeaderMangling.cc:37
const HeaderTableRecord & lookup(const char *buf, const std::size_t len) const
look record type up by name (C-string and length)
Definition: RegisteredHeaders.cc:32
static void header_mangler_dump_access(StoreEntry *entry, const char *option, const headerMangler &m, const char *name)
Definition: HeaderMangling.cc:126
Definition: forward.h:15
void dumpReplacement(StoreEntry *entry, const char *optionName) const
report the *_header_replace part of the configuration
Definition: HeaderMangling.cc:173
Definition: HeaderMangling.h:38
const HeaderLookupTable_t HeaderLookupTable
Definition: RegisteredHeaders.cc:60
void dumpAccess(StoreEntry *entry, const char *optionName) const
report the *_header_access part of the configuration
Definition: HeaderMangling.cc:161
Definition: Store.h:37
static void header_mangler_dump_replacement(StoreEntry *entry, const char *option, const headerMangler &m, const char *name)
Definition: HeaderMangling.cc:136
HttpHeaderEntry * getEntry(HttpHeaderPos *pos) const
Definition: HttpHeader.cc:716
HeaderManglers * request_header_access
request_header_access and request_header_replace
Definition: SquidConfig.h:461
void updateAle(const AccessLogEntry::Pointer &)
Definition: FilledChecklist.cc:242
static void httpHdrAdd(HttpHeader *heads, HttpRequest *request, const AccessLogEntryPointer &al, HeaderWithAclList &headersAdd)
Definition: HeaderMangling.cc:244
Definition: HttpHeader.h:74
void setReplacement(const char *name, const char *replacementValue)
updates mangler for the named header with a replacement value
Definition: HeaderMangling.cc:204
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products