9#ifndef SQUID_SRC_HTTPHDRCC_H
10#define SQUID_SRC_HTTPHDRCC_H
14#include "mem/forward.h"
183 template<
class Value>
185 if (
isSet(hdrType)) {
void httpHdrCcUpdateStats(const HttpHdrCc *cc, StatHist *hist)
std::ostream & operator<<(std::ostream &, HttpHdrCcType)
void httpHdrCcStatDumper(StoreEntry *sentry, int idx, double val, double size, int count)
bool hasSMaxAge(int32_t *val=nullptr) const
static const int32_t S_MAXAGE_UNKNOWN
MEMPROXY_CLASS(HttpHdrCc)
void clear()
reset data-members to default state
bool hasDirective(const HttpHdrCcType hdrType, const Value &parsedVal, Value *outVal=nullptr) const
implements typical has*() method logic
void staleIfError(int32_t v)
String no_cache
List of headers sent as value for CC:no-cache="...". May be empty/undefined if the value is missing.
bool hasMustRevalidate() const
bool hasNoCache(const String **val=nullptr) const
void mustRevalidate(bool v)
static const int32_t MIN_FRESH_UNKNOWN
void Private(const String &v)
bool hasMaxStale(int32_t *val=nullptr) const
bool hasPrivate(const String **val=nullptr) const
void clearMustRevalidate()
static const int32_t STALE_IF_ERROR_UNKNOWN
bool hasNoCacheWithoutParameters() const
void setMask(HttpHdrCcType id, bool newval=true)
low-level part of the public set method, performs no checks
void clearProxyRevalidate()
bool parse(const String &s)
parse a header-string and fill in appropriate values.
bool hasMinFresh(int32_t *val=nullptr) const
bool isSet(HttpHdrCcType id) const
check whether the attribute value supplied by id is set
String private_
List of headers sent as value for CC:private="...". May be empty/undefined if the value is missing.
void onlyIfCached(bool v)
static const int32_t MAX_STALE_ANY
void noCache(const String &v)
bool hasOnlyIfCached() const
void setValue(int32_t &value, int32_t new_value, HttpHdrCcType hdr, bool setting=true)
static const int32_t MAX_STALE_UNKNOWN
bool hasImmutable() const
static const int32_t MAX_AGE_UNKNOWN
bool hasMaxAge(int32_t *val=nullptr) const
bool hasProxyRevalidate() const
bool hasNoCacheWithParameters() const
void proxyRevalidate(bool v)
bool hasStaleIfError(int32_t *val=nullptr) const
void packInto(Packable *p) const
bool hasNoTransform() const
void append(char const *buf, int len)
#define EBIT_CLR(flag, bit)
#define EBIT_SET(flag, bit)
#define EBIT_TEST(flag, bit)