#include <HttpHeader.h>

Public Member Functions | |
void * | operator new (size_t byteCount) |
void | operator delete (void *address) |
HttpHeaderEntry (Http::HdrType id, const SBuf &name, const char *value) | |
~HttpHeaderEntry () | |
HttpHeaderEntry * | clone () const |
void | packInto (Packable *p) const |
int | getInt () const |
int64_t | getInt64 () const |
Static Public Member Functions | |
static int | UseCount () |
static HttpHeaderEntry * | parse (const char *field_start, const char *field_end, const http_hdr_owner_type msgType) |
Public Attributes | |
Http::HdrType | id |
SBuf | name |
String | value |
Static Private Member Functions | |
static Mem::AllocatorProxy & | Pool () |
Detailed Description
Definition at line 50 of file HttpHeader.h.
Constructor & Destructor Documentation
◆ HttpHeaderEntry()
HttpHeaderEntry::HttpHeaderEntry | ( | Http::HdrType | id, |
const SBuf & | name, | ||
const char * | value | ||
) |
Definition at line 1408 of file HttpHeader.cc.
References Http::any_HdrType_enum_value(), assert, Http::BAD_HDR, debugs, Http::HeaderLookupTable, headerStatsTable(), id, Http::HeaderLookupTable_t::lookup(), Http::HeaderTableRecord::name, name, Http::OTHER, and value.
◆ ~HttpHeaderEntry()
HttpHeaderEntry::~HttpHeaderEntry | ( | ) |
Definition at line 1426 of file HttpHeader.cc.
References assert, Http::BAD_HDR, debugs, headerStatsTable(), id, name, and value.
Member Function Documentation
◆ clone()
HttpHeaderEntry * HttpHeaderEntry::clone | ( | ) | const |
Definition at line 1554 of file HttpHeader.cc.
References HttpHeaderEntry(), name, String::termedBuf(), and value.
Referenced by copyOneHeaderFromClientsideRequestToUpstreamRequest(), HttpReply::make304(), and HttpHeader::update().
◆ getInt()
int HttpHeaderEntry::getInt | ( | ) | const |
Definition at line 1570 of file HttpHeader.cc.
References httpHeaderNoteParsedEntry(), httpHeaderParseInt(), String::termedBuf(), and value.
Referenced by HttpHeader::getInt().
◆ getInt64()
int64_t HttpHeaderEntry::getInt64 | ( | ) | const |
Definition at line 1582 of file HttpHeader.cc.
References httpHeaderNoteParsedEntry(), httpHeaderParseOffset(), String::termedBuf(), and value.
Referenced by copyOneHeaderFromClientsideRequestToUpstreamRequest(), and HttpHeader::getInt64().
◆ operator delete()
|
inline |
Definition at line 52 of file HttpHeader.h.
◆ operator new()
|
inline |
Definition at line 52 of file HttpHeader.h.
◆ packInto()
void HttpHeaderEntry::packInto | ( | Packable * | p | ) | const |
Definition at line 1560 of file HttpHeader.cc.
References Packable::append(), assert, SBuf::length(), name, String::rawBuf(), SBuf::rawContent(), String::size(), and value.
Referenced by HttpHeader::packInto().
◆ parse()
|
static |
Definition at line 1440 of file HttpHeader.cc.
References HttpHeaderEntry(), SBuf::append(), String::assign(), Http::BAD_HDR, Config, debugs, getStringPrefix(), HeaderEntryParsedCount, Http::HeaderLookupTable, headerStatsTable(), hoReply, hoRequest, Http::HeaderTableRecord::id, id, Http::HeaderLookupTable_t::lookup(), min(), Http::HeaderTableRecord::name, NULL, SquidConfig::onoff, Http::OTHER, SquidConfig::relaxed_header_parser, CharacterSet::TCHAR, String::termedBuf(), value, and xisspace.
Referenced by HttpHeader::parse().
◆ Pool()
|
inlinestaticprivate |
Definition at line 52 of file HttpHeader.h.
◆ UseCount()
|
inlinestatic |
Definition at line 52 of file HttpHeader.h.
Member Data Documentation
◆ id
Http::HdrType HttpHeaderEntry::id |
Definition at line 63 of file HttpHeader.h.
Referenced by HttpHeaderEntry(), ~HttpHeaderEntry(), HttpHeader::addEntry(), clientReplyContext::buildReplyHeader(), clientCheckPinning(), copyOneHeaderFromClientsideRequestToUpstreamRequest(), HeaderManglers::find(), HttpHeader::getContRange(), HttpHeader::getLastStr(), HttpHeader::getList(), HttpHeader::getRange(), HttpHeader::getStr(), HttpHeader::getTime(), HttpHeader::hasNamed(), HttpHeader::insertEntry(), HttpHeader::packInto(), parse(), HttpHeader::removeHopByHopEntries(), and HttpHeader::update().
◆ name
SBuf HttpHeaderEntry::name |
Definition at line 64 of file HttpHeader.h.
Referenced by HttpHeaderEntry(), ~HttpHeaderEntry(), HttpHeader::addEntry(), clone(), copyOneHeaderFromClientsideRequestToUpstreamRequest(), HttpHeader::delAt(), HeaderManglers::find(), HttpHeader::hasNamed(), HttpHeader::insertEntry(), packInto(), HttpHeader::packInto(), HttpHeader::removeConnectionHeaderEntries(), and HttpHeader::update().
◆ value
String HttpHeaderEntry::value |
Definition at line 65 of file HttpHeader.h.
Referenced by HttpHeaderEntry(), ~HttpHeaderEntry(), HttpHeader::addEntry(), clientReplyContext::buildReplyHeader(), clientCheckPinning(), clone(), copyOneHeaderFromClientsideRequestToUpstreamRequest(), HttpHeader::delAt(), HttpHeader::getContRange(), HttpHeader::getETag(), getInt(), getInt64(), HttpHeader::getLastStr(), HttpHeader::getList(), HttpHeader::getRange(), HttpHeader::getStr(), HttpHeader::getStrOrList(), HttpHeader::getTime(), HttpHeader::getTimeOrTag(), Ftp::Server::handleRequest(), HttpHeader::hasNamed(), httpHdrMangle(), HttpHeader::insertEntry(), packInto(), parse(), and Ftp::Relay::sendCommand().
The documentation for this class was generated from the following files:
- src/HttpHeader.h
- src/HttpHeader.cc
- src/tests/stub_HttpHeader.cc