|
Squid Web Cache master
|
#include "squid.h"#include "base/EnumIterator.h"#include "base/LookupTable.h"#include "HttpHdrCc.h"#include "HttpHeader.h"#include "HttpHeaderStat.h"#include "HttpHeaderTools.h"#include "sbuf/SBuf.h"#include "SquidMath.h"#include "StatHist.h"#include "Store.h"#include "StrList.h"#include "util.h"#include <map>#include <vector>#include <optional>#include <ostream>Go to the source code of this file.
Functions | |
| constexpr const auto & | CcAttrs () |
| static auto | ccTypeByName (const SBuf &name) |
| template<typename RawId > | |
| static std::optional< const char * > | ccNameByType (const RawId rawId) |
| static HttpHdrCcType & | operator++ (HttpHdrCcType &aHeader) |
| used to walk a table of http_header_cc_type structs | |
| void | httpHdrCcUpdateStats (const HttpHdrCc *cc, StatHist *hist) |
| void | httpHdrCcStatDumper (StoreEntry *sentry, int, double val, double, int count) |
| std::ostream & | operator<< (std::ostream &s, HttpHdrCcType c) |
Variables | |
| constexpr LookupTable< HttpHdrCcType >::Record | attrsList [] |
|
constexpr |
Definition at line 50 of file HttpHdrCc.cc.
References attrsList, and CC_ENUM_END.
Referenced by ccNameByType(), and ccTypeByName().
|
static |
Safely converts an integer into a Cache-Control directive name.
Definition at line 72 of file HttpHdrCc.cc.
References CC_ENUM_END, CcAttrs(), and Less().
Referenced by httpHdrCcStatDumper(), operator<<(), and HttpHdrCc::packInto().
|
static |
Definition at line 63 of file HttpHdrCc.cc.
References CC_OTHER, and CcAttrs().
Referenced by HttpHdrCc::parse().
| void httpHdrCcStatDumper | ( | StoreEntry * | sentry, |
| int | idx, | ||
| double | val, | ||
| double | size, | ||
| int | count | ||
| ) |
Definition at line 352 of file HttpHdrCc.cc.
References ccNameByType(), HttpHeaderStat::ccParsedCount, dump_stat, storeAppendPrintf(), and xdiv().
Referenced by httpHeaderStatDump().
Definition at line 342 of file HttpHdrCc.cc.
References assert, CC_ENUM_END, CC_PUBLIC, StatHist::count(), and HttpHdrCc::isSet().
Referenced by HttpHeader::getCc().
|
static |
Definition at line 84 of file HttpHdrCc.cc.
References int.
| std::ostream & operator<< | ( | std::ostream & | s, |
| HttpHdrCcType | c | ||
| ) |
Definition at line 362 of file HttpHdrCc.cc.
References ccNameByType().
|
constexpr |
Definition at line 30 of file HttpHdrCc.cc.
Referenced by CcAttrs().