#include "squid.h"
#include "base/EnumIterator.h"
#include "base/LookupTable.h"
#include "HttpHdrCc.h"
#include "HttpHeader.h"
#include "HttpHeaderFieldStat.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>
![](HttpHdrCc_8cc__incl.png)
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) |
std::vector< HttpHeaderFieldStat > | ccHeaderStats (HttpHdrCcType::CC_ENUM_END) |
static HttpHdrCcType & | operator++ (HttpHdrCcType &aHeader) |
used to walk a table of http_header_cc_type structs More... | |
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 [] |
Function Documentation
◆ CcAttrs()
|
constexpr |
Definition at line 51 of file HttpHdrCc.cc.
References attrsList, and CC_ENUM_END.
Referenced by ccNameByType(), and ccTypeByName().
◆ ccHeaderStats()
std::vector<HttpHeaderFieldStat> ccHeaderStats | ( | HttpHdrCcType::CC_ENUM_END | ) |
Referenced by HttpHdrCc::parse().
◆ ccNameByType()
|
static |
Safely converts an integer into a Cache-Control directive name.
- Returns
- std::nullopt if the given integer is not a valid index of a named attrsList entry
Definition at line 73 of file HttpHdrCc.cc.
References CC_ENUM_END, CcAttrs(), and Less().
Referenced by httpHdrCcStatDumper(), operator<<(), and HttpHdrCc::packInto().
◆ ccTypeByName()
|
static |
Definition at line 64 of file HttpHdrCc.cc.
References CC_OTHER, and CcAttrs().
Referenced by HttpHdrCc::parse().
◆ httpHdrCcStatDumper()
void httpHdrCcStatDumper | ( | StoreEntry * | sentry, |
int | , | ||
double | val, | ||
double | , | ||
int | count | ||
) |
Definition at line 356 of file HttpHdrCc.cc.
References ccNameByType(), HttpHeaderStat::ccParsedCount, dump_stat, storeAppendPrintf(), and xdiv().
Referenced by httpHeaderStatDump().
◆ httpHdrCcUpdateStats()
Definition at line 346 of file HttpHdrCc.cc.
References assert, CC_ENUM_END, CC_PUBLIC, StatHist::count(), and HttpHdrCc::isSet().
Referenced by HttpHeader::getCc().
◆ operator++()
|
static |
Definition at line 87 of file HttpHdrCc.cc.
References int.
◆ operator<<()
std::ostream& operator<< | ( | std::ostream & | s, |
HttpHdrCcType | c | ||
) |
Definition at line 367 of file HttpHdrCc.cc.
References ccNameByType().
Variable Documentation
◆ attrsList
|
constexpr |
Definition at line 31 of file HttpHdrCc.cc.
Referenced by CcAttrs().
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