#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>
Go to the source code of this file.
Functions | |
std::vector< HttpHeaderFieldStat > | headerStatsTable (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, hoEnd > | HttpHeaderStats |
static int | HeaderEntryParsedCount = 0 |
const HttpHeaderStat * | dump_stat = nullptr |
Function Documentation
◆ headerStatsTable()
std::vector< HttpHeaderFieldStat > headerStatsTable | ( | Http::HdrType::enumEnd_ | ) |
◆ httpHeaderFieldStatDumper()
|
static |
Definition at line 1565 of file HttpHeader.cc.
References Http::any_valid_header(), HttpHeaderStat::busyDestroyedCount, CBIT_TEST, dump_stat, Http::HeaderLookupTable, Http::HeaderLookupTable_t::lookup(), Http::HeaderTableRecord::name, HttpHeaderStat::owner_mask, storeAppendPrintf(), and xdiv().
Referenced by httpHeaderStatDump().
◆ httpHeaderFldsPerHdrDumper()
|
static |
Definition at line 1582 of file HttpHeader.cc.
References HttpHeaderStat::destroyedCount, dump_stat, storeAppendPrintf(), and xpercent().
Referenced by httpHeaderStatDump().
◆ httpHeaderInitModule()
void httpHeaderInitModule | ( | void | ) |
Definition at line 121 of file HttpHeader.cc.
References assert, CBIT_SET, Http::enumEnd_, Http::HeaderLookupTable, hoEnd, httpHdrCcInitModule(), httpHdrScInitModule(), httpHeaderRegisterWithCacheManager(), HttpHeaderStats, ReplyHeadersMask, and RequestHeadersMask.
Referenced by TestUfs::commonInit(), and mainInitialize().
◆ httpHeaderNoteParsedEntry()
|
static |
Definition at line 1544 of file HttpHeader.cc.
References Http::BAD_HDR, debugs, error(), Http::HeaderLookupTable, and headerStatsTable().
Referenced by HttpHeader::getCc(), HttpHeader::getContRange(), HttpHeaderEntry::getInt(), HttpHeaderEntry::getInt64(), HttpHeader::getLastStr(), HttpHeader::getRange(), HttpHeader::getSc(), HttpHeader::getStr(), and HttpHeader::getTime().
◆ httpHeaderRegisterWithCacheManager()
|
static |
Definition at line 113 of file HttpHeader.cc.
References httpHeaderStoreReport(), and Mgr::RegisterAction().
Referenced by httpHeaderInitModule().
◆ httpHeaderStatDump()
|
static |
Definition at line 1591 of file HttpHeader.cc.
References assert, HttpHeaderStat::ccTypeDistr, StatHist::dump(), dump_stat, HttpHeaderStat::fieldTypeDistr, HttpHeaderStat::hdrUCountDistr, httpHdrCcStatDumper(), httpHdrScStatDumper(), httpHeaderFieldStatDumper(), httpHeaderFldsPerHdrDumper(), HttpHeaderStat::label, HttpHeaderStat::owner_mask, HttpHeaderStat::scTypeDistr, and storeAppendPrintf().
Referenced by httpHeaderStoreReport().
◆ httpHeaderStoreReport()
|
static |
store report about current header usage and other stats
Definition at line 1622 of file HttpHeader.cc.
References assert, HeaderEntryParsedCount, Http::HeaderLookupTable, headerStatsTable(), hoReply, hoRequest, httpHeaderStatDump(), HttpHeaderStats, Ping::stats, storeAppendPrintf(), and xpercent().
Referenced by httpHeaderRegisterWithCacheManager().
Variable Documentation
◆ dump_stat
const HttpHeaderStat * dump_stat = nullptr |
Definition at line 1562 of file HttpHeader.cc.
Referenced by httpHdrCcStatDumper(), httpHdrScStatDumper(), httpHdrScTargetStatDumper(), httpHeaderFieldStatDumper(), httpHeaderFldsPerHdrDumper(), and httpHeaderStatDump().
◆ HeaderEntryParsedCount
|
static |
Definition at line 93 of file HttpHeader.cc.
Referenced by httpHeaderStoreReport(), and HttpHeaderEntry::parse().
◆ HttpHeaderStats
|
static |
Definition at line 79 of file HttpHeader.cc.
Referenced by HttpHeader::clean(), HttpHeader::getCc(), HttpHeader::getSc(), httpHeaderInitModule(), httpHeaderStoreReport(), and HttpHeader::parse().
◆ ReplyHeadersMask
|
static |
Definition at line 75 of file HttpHeader.cc.
Referenced by httpHeaderInitModule().
◆ RequestHeadersMask
|
static |
Definition at line 72 of file HttpHeader.cc.
Referenced by httpHeaderInitModule().