HttpHeader.cc File Reference
#include "squid.h"
#include "base/Assure.h"
#include "base/CharacterSet.h"
#include "base/EnumIterator.h"
#include "base/Raw.h"
#include "base64.h"
#include "globals.h"
#include "http/ContentLengthInterpreter.h"
#include "HttpHdrCc.h"
#include "HttpHdrContRange.h"
#include "HttpHdrScTarget.h"
#include "HttpHeader.h"
#include "HttpHeaderFieldStat.h"
#include "HttpHeaderStat.h"
#include "HttpHeaderTools.h"
#include "MemBuf.h"
#include "mgr/Registration.h"
#include "mime_header.h"
#include "sbuf/StringConvert.h"
#include "SquidConfig.h"
#include "StatHist.h"
#include "Store.h"
#include "StrList.h"
#include "time/gadgets.h"
#include "TimeOrTag.h"
#include "util.h"
#include <algorithm>
#include <array>
Include dependency graph for HttpHeader.cc:

Go to the source code of this file.

Functions

std::vector< HttpHeaderFieldStatheaderStatsTable (Http::HdrType::enumEnd_)
 
static void httpHeaderNoteParsedEntry (Http::HdrType id, String const &value, bool error)
 
static void httpHeaderStatDump (const HttpHeaderStat *hs, StoreEntry *e)
 
static void httpHeaderStoreReport (StoreEntry *e)
 
static void httpHeaderRegisterWithCacheManager (void)
 
void httpHeaderInitModule (void)
 
static void httpHeaderFieldStatDumper (StoreEntry *sentry, int, double val, double, int count)
 
static void httpHeaderFldsPerHdrDumper (StoreEntry *sentry, int idx, double val, double, int count)
 

Variables

static HttpHeaderMask RequestHeadersMask
 
static HttpHeaderMask ReplyHeadersMask
 
static std::array< HttpHeaderStat, hoEndHttpHeaderStats
 
static int HeaderEntryParsedCount = 0
 
const HttpHeaderStatdump_stat = nullptr
 

Function Documentation

◆ headerStatsTable()

◆ httpHeaderFieldStatDumper()

◆ httpHeaderFldsPerHdrDumper()

static void httpHeaderFldsPerHdrDumper ( StoreEntry sentry,
int  idx,
double  val,
double  ,
int  count 
)
static

Definition at line 1582 of file HttpHeader.cc.

References HttpHeaderStat::destroyedCount, dump_stat, storeAppendPrintf(), and xpercent().

Referenced by httpHeaderStatDump().

◆ httpHeaderInitModule()

◆ httpHeaderNoteParsedEntry()

◆ httpHeaderRegisterWithCacheManager()

static void httpHeaderRegisterWithCacheManager ( void  )
static

Definition at line 113 of file HttpHeader.cc.

References httpHeaderStoreReport(), and Mgr::RegisterAction().

Referenced by httpHeaderInitModule().

◆ httpHeaderStatDump()

◆ httpHeaderStoreReport()

void httpHeaderStoreReport ( StoreEntry e)
static

Variable Documentation

◆ dump_stat

◆ HeaderEntryParsedCount

int HeaderEntryParsedCount = 0
static

Definition at line 93 of file HttpHeader.cc.

Referenced by httpHeaderStoreReport(), and HttpHeaderEntry::parse().

◆ HttpHeaderStats

std::array<HttpHeaderStat, hoEnd> HttpHeaderStats
static
Initial value:
= {{
HttpHeaderStat( "all", nullptr),
HttpHeaderStat( "HTCP reply", &ReplyHeadersMask),
, HttpHeaderStat( "error detail templates", nullptr)
}
}
static HttpHeaderMask RequestHeadersMask
Definition: HttpHeader.cc:72
static HttpHeaderMask ReplyHeadersMask
Definition: HttpHeader.cc:75
HTTP per header statistics.

Definition at line 79 of file HttpHeader.cc.

Referenced by HttpHeader::clean(), HttpHeader::getCc(), HttpHeader::getSc(), httpHeaderInitModule(), httpHeaderStoreReport(), and HttpHeader::parse().

◆ ReplyHeadersMask

HttpHeaderMask ReplyHeadersMask
static

Definition at line 75 of file HttpHeader.cc.

Referenced by httpHeaderInitModule().

◆ RequestHeadersMask

HttpHeaderMask RequestHeadersMask
static

Definition at line 72 of file HttpHeader.cc.

Referenced by httpHeaderInitModule().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors