HttpHdrCc.cc File Reference
#include "squid.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 "StatHist.h"
#include "Store.h"
#include "StrList.h"
#include "util.h"
#include <map>
#include <vector>
#include <ostream>
Include dependency graph for HttpHdrCc.cc:

Go to the source code of this file.

Functions

std::vector< HttpHeaderFieldStatccHeaderStats (HttpHdrCcType::CC_ENUM_END)
 
static HttpHdrCcTypeoperator++ (HttpHdrCcType &aHeader)
 used to walk a table of http_header_cc_type structs More...
 
void httpHdrCcInitModule (void)
 Module initialization hook. 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

static LookupTable< HttpHdrCcType >::Record CcAttrs []
 
LookupTable< HttpHdrCcTypeccLookupTable (HttpHdrCcType::CC_OTHER, CcAttrs)
 

Function Documentation

◆ ccHeaderStats()

◆ httpHdrCcInitModule()

void httpHdrCcInitModule ( void  )

Definition at line 61 of file HttpHdrCc.cc.

References assert, and CcAttrs.

Referenced by httpHeaderInitModule().

◆ httpHdrCcStatDumper()

void httpHdrCcStatDumper ( StoreEntry sentry,
int  idx,
double  val,
double  size,
int  count 
)

◆ httpHdrCcUpdateStats()

void httpHdrCcUpdateStats ( const HttpHdrCc cc,
StatHist hist 
)

Definition at line 321 of file HttpHdrCc.cc.

References assert, CC_ENUM_END, CC_PUBLIC, StatHist::count(), and HttpHdrCc::isSet().

Referenced by HttpHeader::getCc().

◆ operator++()

static HttpHdrCcType & operator++ ( HttpHdrCcType aHeader)
static

Definition at line 52 of file HttpHdrCc.cc.

References int.

◆ operator<<()

std::ostream & operator<< ( std::ostream &  s,
HttpHdrCcType  c 
)

Definition at line 343 of file HttpHdrCc.cc.

References CC_ENUM_END, and CcAttrs.

Variable Documentation

◆ CcAttrs

LookupTable<HttpHdrCcType>::Record CcAttrs[]
static
Initial value:
= {
{"no-transform", HttpHdrCcType::CC_NO_TRANSFORM},
{"must-revalidate", HttpHdrCcType::CC_MUST_REVALIDATE},
{"proxy-revalidate", HttpHdrCcType::CC_PROXY_REVALIDATE},
{"only-if-cached", HttpHdrCcType::CC_ONLY_IF_CACHED},
{"stale-if-error", HttpHdrCcType::CC_STALE_IF_ERROR},
}
@ CC_MUST_REVALIDATE
Definition: HttpHdrCc.h:26
@ CC_S_MAXAGE
Definition: HttpHdrCc.h:29
@ CC_ONLY_IF_CACHED
Definition: HttpHdrCc.h:32
@ CC_OTHER
Definition: HttpHdrCc.h:35
@ CC_ENUM_END
Definition: HttpHdrCc.h:36
@ CC_NO_STORE
Definition: HttpHdrCc.h:24
@ CC_PUBLIC
Definition: HttpHdrCc.h:21
@ CC_PRIVATE
Definition: HttpHdrCc.h:22
@ CC_MAX_STALE
Definition: HttpHdrCc.h:30
@ CC_STALE_IF_ERROR
Definition: HttpHdrCc.h:33
@ CC_IMMUTABLE
Definition: HttpHdrCc.h:34
@ CC_PROXY_REVALIDATE
Definition: HttpHdrCc.h:27
@ CC_NO_CACHE
Definition: HttpHdrCc.h:23
@ CC_MAX_AGE
Definition: HttpHdrCc.h:28
@ CC_NO_TRANSFORM
Definition: HttpHdrCc.h:25
@ CC_MIN_FRESH
Definition: HttpHdrCc.h:31

Definition at line 29 of file HttpHdrCc.cc.

Referenced by httpHdrCcInitModule(), httpHdrCcStatDumper(), operator<<(), and HttpHdrCc::packInto().

◆ ccLookupTable

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors