#include <HttpHdrSc.h>
Public Member Functions | |
bool | parse (const String *str) |
void | packInto (Packable *p) const |
void | updateStats (StatHist *) const |
HttpHdrScTarget * | getMergedTarget (const char *ourtarget) |
void | setMaxAge (char const *target, int max_age) |
Private Member Functions | |
MEMPROXY_CLASS (HttpHdrSc) | |
HttpHdrScTarget * | findTarget (const char *target) |
Private Attributes | |
std::list< HttpHdrScTarget, PoolingAllocator< HttpHdrScTarget > > | targets |
Detailed Description
Definition at line 24 of file HttpHdrSc.h.
Member Function Documentation
◆ findTarget()
|
private |
Definition at line 283 of file HttpHdrSc.cc.
References targets.
Referenced by getMergedTarget(), and setMaxAge().
◆ getMergedTarget()
HttpHdrScTarget * HttpHdrSc::getMergedTarget | ( | const char * | ourtarget | ) |
Definition at line 294 of file HttpHdrSc.cc.
References findTarget(), and HttpHdrScTarget::mergeWith().
Referenced by esiEnableProcessing(), and HttpStateData::processSurrogateControl().
◆ MEMPROXY_CLASS()
|
private |
◆ packInto()
void HttpHdrSc::packInto | ( | Packable * | p | ) | const |
Definition at line 227 of file HttpHdrSc.cc.
◆ parse()
bool HttpHdrSc::parse | ( | const String * | str | ) |
Definition at line 74 of file HttpHdrSc.cc.
References assert, HttpHdrScTarget::clearContent(), HttpHdrScTarget::clearMaxAge(), HttpHdrScTarget::clearMaxStale(), HttpHdrScTarget::content_, debugs, httpHeaderParseInt(), httpHeaderParseQuotedString(), HttpHdrScTarget::isSet(), HttpHdrScTarget::maxAge(), HttpHdrScTarget::maxStale(), HttpHdrScTarget::noStore(), HttpHdrScTarget::noStoreRemote(), safe_free, sc, SC_CONTENT, SC_ENUM_END, SC_MAX_AGE, SC_NO_STORE, SC_NO_STORE_REMOTE, SC_OTHER, scHeaderStats(), scLookupTable, HttpHdrScTarget::setMask(), strListGetItem(), targets, and xstrndup().
◆ setMaxAge()
void HttpHdrSc::setMaxAge | ( | char const * | target, |
int | max_age | ||
) |
Definition at line 237 of file HttpHdrSc.cc.
References findTarget(), HttpHdrScTarget::maxAge(), and targets.
◆ updateStats()
void HttpHdrSc::updateStats | ( | StatHist * | hist | ) | const |
Definition at line 249 of file HttpHdrSc.cc.
References targets.
Member Data Documentation
◆ targets
|
private |
Definition at line 38 of file HttpHdrSc.h.
Referenced by findTarget(), packInto(), parse(), setMaxAge(), and updateStats().
The documentation for this class was generated from the following files:
- src/HttpHdrSc.h
- src/HttpHdrSc.cc