HeaderMangling.cc File Reference
#include "squid.h"
#include "acl/FilledChecklist.h"
#include "acl/Gadgets.h"
#include "base/EnumIterator.h"
#include "fde.h"
#include "globals.h"
#include "http/RegisteredHeaders.h"
#include "HttpHeader.h"
#include "HttpRequest.h"
#include "MemBuf.h"
#include "sbuf/Stream.h"
#include "sbuf/StringConvert.h"
#include "SquidConfig.h"
#include "Store.h"
Include dependency graph for HeaderMangling.cc:

Go to the source code of this file.

Functions

static void httpHdrAdd (HttpHeader *heads, HttpRequest *request, const AccessLogEntryPointer &al, HeaderWithAclList &headersAdd)
 
static int httpHdrMangle (HttpHeaderEntry *e, HttpRequest *request, HeaderManglers *hms, const AccessLogEntryPointer &al)
 
void httpHdrMangleList (HttpHeader *l, HttpRequest *request, const AccessLogEntryPointer &al, req_or_rep_t req_or_rep)
 
static void header_mangler_clean (headerMangler &m)
 
static void header_mangler_dump_access (StoreEntry *entry, const char *option, const headerMangler &m, const char *name)
 
static void header_mangler_dump_replacement (StoreEntry *entry, const char *option, const headerMangler &m, const char *name)
 

Function Documentation

◆ header_mangler_clean()

static void header_mangler_clean ( headerMangler m)
static

◆ header_mangler_dump_access()

static void header_mangler_dump_access ( StoreEntry entry,
const char *  option,
const headerMangler m,
const char *  name 
)
static

◆ header_mangler_dump_replacement()

static void header_mangler_dump_replacement ( StoreEntry entry,
const char *  option,
const headerMangler m,
const char *  name 
)
static

◆ httpHdrAdd()

void httpHdrAdd ( HttpHeader heads,
HttpRequest request,
const AccessLogEntryPointer al,
HeaderWithAclList headersAdd 
)
static

◆ httpHdrMangle()

static int httpHdrMangle ( HttpHeaderEntry e,
HttpRequest request,
HeaderManglers hms,
const AccessLogEntryPointer al 
)
static

Checks the anonymizer (header_access) configuration.

Return values
0Header is explicitly blocked for removal
1Header is explicitly allowed
1Header has been replaced, the current version can be used.
1Header has no access controls to test

Definition at line 37 of file HeaderMangling.cc.

References headerMangler::access_list, Acl::Answer::allowed(), assert, debugs, ACLChecklist::fastCheck(), HeaderManglers::find(), headerMangler::replacement, ACLFilledChecklist::updateAle(), and HttpHeaderEntry::value.

Referenced by httpHdrMangleList().

◆ httpHdrMangleList()

 

Introduction

Documentation

Support

Miscellaneous