HeaderMangling.h
Go to the documentation of this file.
98 HeaderWithAcl() : aclList(nullptr), valueFormat(nullptr), fieldId(Http::HdrType::BAD_HDR), quoted(false) {}
119 void httpHdrMangleList(HttpHeader *, HttpRequest *, const AccessLogEntryPointer &al, req_or_rep_t req_or_rep);
HeaderManglers & operator=(const HeaderManglers &)
void httpHdrMangleList(HttpHeader *, HttpRequest *, const AccessLogEntryPointer &al, req_or_rep_t req_or_rep)
Definition: HeaderMangling.cc:82
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
Definition: forward.h:17
ACLList * aclList
when the header field should be added (always if nil)
Definition: HeaderMangling.h:107
Definition: HttpHeader.h:50
Definition: HttpRequest.h:48
headerMangler all
configured if some mangling ACL applies to all header names
Definition: HeaderMangling.h:87
A collection of headerMangler objects for a given message kind.
Definition: HeaderMangling.h:46
Definition: HeaderMangling.h:95
void dumpReplacement(StoreEntry *entry, const char *optionName) const
report the *_header_replace part of the configuration
Definition: HeaderMangling.cc:173
Definition: HeaderMangling.h:38
void dumpAccess(StoreEntry *entry, const char *optionName) const
report the *_header_access part of the configuration
Definition: HeaderMangling.cc:161
Format::Format * valueFormat
compiled HTTP header field value (no macros)
Definition: HeaderMangling.h:110
Definition: Store.h:37
std::map< std::string, headerMangler, NoCaseLessThan > ManglersByName
a name:mangler map; optimize: use unordered map or some such
Definition: HeaderMangling.h:78
Definition: Format.h:41
std::string fieldValue
HTTP header field value, possibly with macros.
Definition: HeaderMangling.h:104
bool operator()(const std::string &lhs, const std::string &rhs) const
Definition: HeaderMangling.h:72
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