#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 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 50 of file HttpHdrCc.cc.
References attrsList, and CC_ENUM_END.
Referenced by ccNameByType(), and ccTypeByName().
◆ 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 72 of file HttpHdrCc.cc.
References CC_ENUM_END, CcAttrs(), and Less().
Referenced by httpHdrCcStatDumper(), operator<<(), and HttpHdrCc::packInto().
◆ ccTypeByName()
|
static |
Definition at line 63 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 352 of file HttpHdrCc.cc.
References ccNameByType(), HttpHeaderStat::ccParsedCount, dump_stat, storeAppendPrintf(), and xdiv().
Referenced by httpHeaderStatDump().
◆ httpHdrCcUpdateStats()
Definition at line 342 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 84 of file HttpHdrCc.cc.
References int.
◆ operator<<()
| std::ostream& operator<< | ( | std::ostream & | s, |
| HttpHdrCcType | c | ||
| ) |
Definition at line 363 of file HttpHdrCc.cc.
References ccNameByType().
Variable Documentation
◆ attrsList
|
constexpr |
Definition at line 30 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
