#include <HttpRequest.h>


Public Types | |
typedef RefCount< HttpRequest > | Pointer |
enum | Sources { srcUnknown = 0, srcHttps = 1 << 0, srcFtps = 1 << 1, srcIcaps = 1 << 2, srcEcaps = 1 << 3, srcHttp = 1 << (16 + 0), srcFtp = 1 << (16 + 1), srcIcap = 1 << (16 + 2), srcEcap = 1 << (16 + 3), srcGopher = 1 << (16 + 14), srcWhois = 1 << (16 + 15), srcUnsafe = 0xFFFF0000, srcSafe = 0x0000FFFF } |
Who may have created or modified this message? More... | |
enum | ParseState { psReadyToParseStartLine = 0, psReadyToParseHeaders, psParsed, psError } |
parse state of HttpReply or HttpRequest More... | |
Public Member Functions | |
void * | operator new (size_t byteCount) |
void | operator delete (void *address) |
HttpRequest (const MasterXaction::Pointer &) | |
HttpRequest (const HttpRequestMethod &aMethod, AnyP::ProtocolType aProtocol, const char *schemeImage, const char *aUrlpath, const MasterXaction::Pointer &) | |
~HttpRequest () | |
virtual void | reset () |
void | initHTTP (const HttpRequestMethod &aMethod, AnyP::ProtocolType aProtocol, const char *schemeImage, const char *aUrlpath) |
virtual HttpRequest * | clone () const |
bool | maybeCacheable () |
bool | conditional () const |
has at least one recognized If-* header More... | |
bool | canHandle1xx () const |
whether the client is likely to be able to handle a 1xx reply More... | |
char * | canonicalCleanUrl () const |
Adaptation::History::Pointer | adaptLogHistory () const |
Returns possibly nil history, creating it if adapt. logging is enabled. More... | |
Adaptation::History::Pointer | adaptHistory (bool createIfNone=false) const |
Returns possibly nil history, creating it if requested. More... | |
void | adaptHistoryImport (const HttpRequest &them) |
Makes their history ours, throwing on conflicts. More... | |
Adaptation::Icap::History::Pointer | icapHistory () const |
Returns possibly nil history, creating it if icap logging is enabled. More... | |
void | prepForPeering (const CachePeer &peer) |
get ready to be sent to the given cache_peer, including originserver More... | |
void | prepForDirect () |
get ready to be sent directly to an origin server, excluding originserver More... | |
void | recordLookup (const Dns::LookupDetails &detail) |
void | detailError (const err_type c, const ErrorDetail::Pointer &d) |
sets error detail if no earlier detail was available More... | |
void | clearError () |
clear error details, useful for retries/repeats More... | |
void | manager (const CbcPointer< ConnStateData > &aMgr, const AccessLogEntryPointer &al) |
associates the request with a from-client connection manager More... | |
const SBuf & | effectiveRequestUri () const |
RFC 7230 section 5.5 - Effective Request URI. More... | |
bool | multipartRangeRequest () const |
bool | parseFirstLine (const char *start, const char *end) |
virtual bool | expectingBody (const HttpRequestMethod &unused, int64_t &) const |
bool | bodyNibbled () const |
int | prefixLen () const |
void | swapOut (StoreEntry *e) |
void | pack (Packable *p) const |
ConnStateData * | pinnedConnection () |
const SBuf | storeId () |
void | ignoreRange (const char *reason) |
forgets about the cached Range header (for a reason) More... | |
int64_t | getRangeOffsetLimit () |
NotePairs::Pointer | notes () |
bool | hasNotes () const |
virtual void | configureContentLengthInterpreter (Http::ContentLengthInterpreter &) |
configures the interpreter as needed More... | |
bool | parseHeader (Http1::Parser &hp) |
bool | parseHeader (const char *buffer, const size_t size) |
void | packInto (Packable *, bool full_uri) const |
produce a message copy, except for a few connection-specific settings More... | |
void | setContentLength (int64_t) |
[re]sets Content-Length header and cached value More... | |
bool | persistent () const |
void | putCc (const HttpHdrCc *otherCc) |
copies Cache-Control header to this message More... | |
bool | parse (const char *buf, const size_t sz, bool eol, Http::StatusCode *error) |
bool | parseCharBuf (const char *buf, ssize_t end) |
int | httpMsgParseStep (const char *buf, int len, int atEnd) |
virtual int | httpMsgParseError () |
void | firstLineBuf (MemBuf &) |
useful for debugging More... | |
Static Public Member Functions | |
static int | UseCount () |
static void | httpRequestPack (void *obj, Packable *p) |
static HttpRequest * | FromUrl (const SBuf &url, const MasterXaction::Pointer &, const HttpRequestMethod &method=Http::METHOD_GET) |
static HttpRequest * | FromUrlXXX (const char *url, const MasterXaction::Pointer &, const HttpRequestMethod &method=Http::METHOD_GET) |
Protected Member Functions | |
void | clean () |
void | init () |
virtual void | packFirstLineInto (Packable *p, bool full_uri) const |
virtual bool | sanityCheckStartLine (const char *buf, const size_t hdr_len, Http::StatusCode *error) |
virtual void | hdrCacheInit () |
virtual bool | inheritProperties (const Http::Message *) |
bool | parseHeader (Http1::Parser &, Http::ContentLengthInterpreter &) |
Static Private Member Functions | |
static Mem::AllocatorProxy & | Pool () |
Private Attributes | |
Adaptation::History::Pointer | adaptHistory_ |
per-HTTP transaction info More... | |
Adaptation::Icap::History::Pointer | icapHistory_ |
per-HTTP transaction info More... | |
int64_t | rangeOffsetLimit |
NotePairs::Pointer | theNotes |
Detailed Description
Definition at line 48 of file HttpRequest.h.
Member Typedef Documentation
◆ Pointer
typedef RefCount<HttpRequest> HttpRequest::Pointer |
Definition at line 53 of file HttpRequest.h.
Member Enumeration Documentation
◆ ParseState
|
inherited |
◆ Sources
|
inherited |
Constructor & Destructor Documentation
◆ HttpRequest() [1/2]
HttpRequest::HttpRequest | ( | const MasterXaction::Pointer & | mx | ) |
◆ HttpRequest() [2/2]
HttpRequest::HttpRequest | ( | const HttpRequestMethod & | aMethod, |
AnyP::ProtocolType | aProtocol, | ||
const char * | schemeImage, | ||
const char * | aUrlpath, | ||
const MasterXaction::Pointer & | mx | ||
) |
Definition at line 51 of file HttpRequest.cc.
References assert, debugs, HERE(), init(), and initHTTP().
◆ ~HttpRequest()
HttpRequest::~HttpRequest | ( | ) |
Definition at line 62 of file HttpRequest.cc.
Member Function Documentation
◆ adaptHistory()
Adaptation::History::Pointer HttpRequest::adaptHistory | ( | bool | createIfNone = false | ) | const |
Definition at line 405 of file HttpRequest.cc.
References adaptHistory_, debugs, and HERE().
Referenced by adaptLogHistory(), Format::Format::assemble(), inheritProperties(), and Adaptation::Iterator::updatePlan().
◆ adaptHistoryImport()
void HttpRequest::adaptHistoryImport | ( | const HttpRequest & | them | ) |
Definition at line 422 of file HttpRequest.cc.
References adaptHistory_, and Must.
◆ adaptLogHistory()
Adaptation::History::Pointer HttpRequest::adaptLogHistory | ( | ) | const |
Definition at line 416 of file HttpRequest.cc.
References adaptHistory(), and Log::TheConfig.
◆ bodyNibbled()
bool HttpRequest::bodyNibbled | ( | ) | const |
Definition at line 441 of file HttpRequest.cc.
References Http::Message::body_pipe, BodyPipe::consumedSize(), and NULL.
Referenced by FwdState::checkRetry(), and FwdState::reforward().
◆ canHandle1xx()
bool HttpRequest::canHandle1xx | ( | ) | const |
Definition at line 643 of file HttpRequest.cc.
References Http::EXPECT, HttpHeader::has(), Http::Message::header, Http::Message::http_ver, and Http::ProtocolVersion().
Referenced by HttpStateData::handle1xx().
◆ canonicalCleanUrl()
char * HttpRequest::canonicalCleanUrl | ( | ) | const |
- Returns
- a pointer to a local static buffer containing request URI that honors strip_query_terms and %-encodes unsafe URI characters
Definition at line 758 of file HttpRequest.cc.
References effectiveRequestUri(), AnyP::Uri::getScheme(), method, url, and urlCanonicalCleanWithoutRequest().
Referenced by ClientHttpRequest::setLogUriToRequestUri().
◆ clean()
|
protected |
Definition at line 122 of file HttpRequest.cc.
References adaptHistory_, auth_user_request, Http::Message::body_pipe, Http::Message::cache_control, HttpHeader::clean(), String::clean(), AnyP::Uri::clear(), SBuf::clear(), etag, extacl_log, extacl_message, extacl_passwd, extacl_user, Http::Message::header, icapHistory_, myportname, NULL, range, tag, theNotes, url, and vary_headers.
Referenced by ~HttpRequest(), and reset().
◆ clearError()
void HttpRequest::clearError | ( | ) |
Definition at line 466 of file HttpRequest.cc.
References Error::clear(), debugs, and error.
Referenced by FwdState::connectStart().
◆ clone()
|
virtual |
Implements Http::Message.
Definition at line 176 of file HttpRequest.cc.
References HttpRequest(), HttpHeader::append(), assert, Http::Message::body_pipe, error, etag, extacl_log, extacl_message, Http::Message::hdr_sz, hdrCacheInit(), Http::Message::header, hier, Http::Message::http_ver, ims, imslen, inheritProperties(), lastmod, masterXaction, method, Http::Message::pstate, tag, url, and vary_headers.
Referenced by ClientRequestContext::clientRedirectDone().
◆ conditional()
bool HttpRequest::conditional | ( | ) | const |
Definition at line 580 of file HttpRequest.cc.
References flags, HttpHeader::has(), Http::Message::header, Http::IF_MATCH, Http::IF_NONE_MATCH, and RequestFlags::ims.
Referenced by clientReplyContext::cacheHit().
◆ configureContentLengthInterpreter()
|
inlinevirtual |
Implements Http::Message.
Definition at line 249 of file HttpRequest.h.
◆ detailError()
|
inline |
Definition at line 101 of file HttpRequest.h.
References error, and Error::update().
Referenced by ErrorState::BuildHttpReply(), ClientHttpRequest::handleAdaptationBlock(), Client::handleAdaptationBlocked(), Client::handledEarlyAdaptationAbort(), and ClientHttpRequest::noteBodyProducerAborted().
◆ effectiveRequestUri()
const SBuf & HttpRequest::effectiveRequestUri | ( | ) | const |
Definition at line 688 of file HttpRequest.cc.
References AnyP::Uri::absolute(), AnyP::Uri::authority(), AnyP::Uri::getScheme(), HttpRequestMethod::id(), method, Http::METHOD_CONNECT, AnyP::PROTO_AUTHORITY_FORM, and url.
Referenced by Ssl::ServerBump::ServerBump(), Format::Format::assemble(), HttpStateData::buildRequestPrefix(), canonicalCleanUrl(), ClientRequestContext::clientAccessCheckDone(), ClientRequestContext::clientRedirectDone(), ErrorState::compileLegacyCode(), AccessLogEntry::effectiveVirginUrl(), ClientHttpRequest::handleAdaptedHeader(), ClientRequestContext::hostHeaderVerifyFailed(), htcpClear(), HttpStateData::httpBuildRequestHeader(), ACLUrlStrategy::match(), Client::maybePurgeOthers(), packFirstLineInto(), clientReplyContext::purgeAllCached(), clientReplyContext::purgeDoPurge(), ClientHttpRequest::resetRequest(), storeId(), PeerSelector::url(), and ACLFilledChecklist::verifyAle().
◆ expectingBody()
|
virtual |
Implements Http::Message.
Definition at line 489 of file HttpRequest.cc.
References HttpHeader::chunked(), Http::Message::content_length, and Http::Message::header.
◆ firstLineBuf()
|
inherited |
Definition at line 295 of file Message.cc.
◆ FromUrl()
|
static |
Definition at line 518 of file HttpRequest.cc.
References HttpRequest(), method, AnyP::Uri::parse(), and url.
Referenced by Downloader::buildRequest(), FromUrlXXX(), Ftp::Server::parseOneRequest(), testHttpRequest::testCreateFromUrl(), and testHttpRequest::testIPv6HostColonBug().
◆ FromUrlXXX()
|
static |
- Deprecated:
- use SBuf variant instead
Definition at line 529 of file HttpRequest.cc.
References FromUrl(), method, and url.
Referenced by Http::One::Server::buildHttpRequest(), clientBeginRequest(), htcpUnpackSpecifier(), icpGetRequest(), MimeIcon::load(), netdbExchangeStart(), peerCountMcastPeersCreateAndSend(), peerDigestRequest(), UrnState::setUriResFromRequest(), Mgr::Inquirer::start(), and storeDigestRewriteStart().
◆ getRangeOffsetLimit()
int64_t HttpRequest::getRangeOffsetLimit | ( | ) |
Definition at line 602 of file HttpRequest.cc.
References Acl::Answer::allowed(), client_addr, Config, debugs, ACLChecklist::fastCheck(), ACLFilledChecklist::my_addr, my_addr, NULL, rangeOffsetLimit, SquidConfig::rangeOffsetLimit, and ACLFilledChecklist::src_addr.
Referenced by CheckQuickAbortIsReasonable(), and HttpStateData::decideIfWeDoRanges().
◆ hasNotes()
|
inline |
Definition at line 247 of file HttpRequest.h.
References NotePairs::empty(), and theNotes.
◆ hdrCacheInit()
|
protectedvirtual |
Reimplemented from Http::Message.
Definition at line 380 of file HttpRequest.cc.
References assert, HttpHeader::getRange(), Http::Message::hdrCacheInit(), Http::Message::header, and range.
Referenced by clone().
◆ httpMsgParseError()
|
virtualinherited |
Reimplemented in HttpReply.
Definition at line 246 of file Message.cc.
Referenced by HttpReply::httpMsgParseError().
◆ httpMsgParseStep()
parses a 0-terminated buffer into Http::Message.
- Return values
-
1 success 0 need more data (partial parse) -1 parse error
Definition at line 170 of file Message.cc.
References assert, buf, httpMsgIsolateStart(), len, PROF_start, PROF_stop, Http::Message::psParsed, Http::Message::psReadyToParseHeaders, and Http::Message::psReadyToParseStartLine.
◆ httpRequestPack()
|
static |
◆ icapHistory()
Adaptation::Icap::History::Pointer HttpRequest::icapHistory | ( | ) | const |
Definition at line 390 of file HttpRequest.cc.
References debugs, HERE(), icapHistory_, IcapLogfileStatus, LOG_ENABLE, and Log::TheConfig.
Referenced by Adaptation::AccessCheck::AccessCheck(), ClientHttpRequest::doCallouts(), Adaptation::Icap::ModXact::finalizeLogInfo(), inheritProperties(), ClientHttpRequest::noteAdaptationAclCheckDone(), and Adaptation::Icap::ModXactLauncher::updateHistory().
◆ ignoreRange()
void HttpRequest::ignoreRange | ( | const char * | reason | ) |
Definition at line 629 of file HttpRequest.cc.
References debugs, NULL, and range.
Referenced by HttpStateData::httpBuildRequestHeader(), clientReplyContext::setReplyToError(), clientReplyContext::setReplyToReply(), and clientReplyContext::setReplyToStoreEntry().
◆ inheritProperties()
|
protectedvirtual |
Implements Http::Message.
Definition at line 215 of file HttpRequest.cc.
References adaptHistory(), adaptHistory_, auth_user_request, client_addr, clientConnectionManager, RequestFlags::cloneAdaptationImmune(), dnsWait, downloader, error, extacl_passwd, extacl_user, flags, forcedBodyContinuation, icapHistory(), icapHistory_, indirect_client_addr, my_addr, myportname, Http::Message::sources, and theNotes.
Referenced by clone().
◆ init()
|
protected |
Definition at line 77 of file HttpRequest.cc.
References adaptHistory_, auth_user_request, Http::Message::body_pipe, AnyP::Uri::clear(), Error::clear(), client_addr, dnsWait, error, extacl_log, extacl_message, extacl_passwd, extacl_user, flags, forcedBodyContinuation, icapHistory_, ims, imslen, indirect_client_addr, lastmod, method, Http::METHOD_NONE, my_addr, myportname, NULL, null_string, peer_domain, peer_host, peer_login, Http::Message::psReadyToParseStartLine, Http::Message::pstate, range, rangeOffsetLimit, Ip::Address::setEmpty(), tag, url, and vary_headers.
Referenced by HttpRequest(), and reset().
◆ initHTTP()
void HttpRequest::initHTTP | ( | const HttpRequestMethod & | aMethod, |
AnyP::ProtocolType | aProtocol, | ||
const char * | schemeImage, | ||
const char * | aUrlpath | ||
) |
Definition at line 69 of file HttpRequest.cc.
References method, AnyP::Uri::path(), AnyP::Uri::setScheme(), and url.
Referenced by HttpRequest().
◆ manager()
void HttpRequest::manager | ( | const CbcPointer< ConnStateData > & | aMgr, |
const AccessLogEntryPointer & | al | ||
) |
Definition at line 718 of file HttpRequest.cc.
References SquidConfig::accessList, ACLFilledChecklist::al, Acl::Answer::allowed(), client_addr, Server::clientConnection, clientConnectionManager, COMM_INTERCEPTION, COMM_TRANSPARENT, Config, ACLChecklist::fastCheck(), flags, RequestFlags::ignoreCc, indirect_client_addr, RequestFlags::intercepted, RequestFlags::interceptTproxy, my_addr, myportname, port, ConnStateData::port, SquidConfig::spoof_client_ip, RequestFlags::spoofClientIp, ACLFilledChecklist::syncAle(), and CbcPointer< Cbc >::valid().
◆ maybeCacheable()
bool HttpRequest::maybeCacheable | ( | ) |
Whether response to this request is potentially cachable
- Return values
-
false Not cacheable. true Possibly cacheable. Response factors will determine.
Are responses to this request possible cacheable ? If false then no matter what the response must not be cached.
Definition at line 539 of file HttpRequest.cc.
References Http::Message::cache_control, flags, AnyP::Uri::getScheme(), gopherCachable(), HttpHdrCc::hasNoStore(), RequestFlags::hostVerified, RequestFlags::ignoreCc, RequestFlags::intercepted, RequestFlags::interceptTproxy, method, AnyP::PROTO_CACHE_OBJECT, AnyP::PROTO_GOPHER, AnyP::PROTO_HTTP, AnyP::PROTO_HTTPS, HttpRequestMethod::respMaybeCacheable(), and url.
Referenced by clientInterpretRequestHeaders().
◆ multipartRangeRequest()
bool HttpRequest::multipartRangeRequest | ( | ) | const |
Definition at line 435 of file HttpRequest.cc.
References range, and HttpHdrRange::specs.
Referenced by HttpStateData::httpBuildRequestHeader(), and ClientHttpRequest::multipartRangeRequest().
◆ notes()
NotePairs::Pointer HttpRequest::notes | ( | ) |
- Returns
- existing non-empty transaction annotations, creates and returns empty annotations otherwise
Definition at line 696 of file HttpRequest.cc.
References theNotes.
Referenced by ClientHttpRequest::initRequest(), ClientHttpRequest::logRequest(), and AccessLogEntry::syncNotes().
◆ operator delete()
|
inline |
Definition at line 50 of file HttpRequest.h.
◆ operator new()
|
inline |
Definition at line 50 of file HttpRequest.h.
◆ pack()
void HttpRequest::pack | ( | Packable * | p | ) | const |
Definition at line 345 of file HttpRequest.cc.
References Packable::append(), Packable::appendf(), assert, Http::Message::header, Http::Message::http_ver, HttpRequestMethod::image(), AnyP::ProtocolVersion::major, method, AnyP::ProtocolVersion::minor, HttpHeader::packInto(), AnyP::Uri::path(), SQUIDSBUFPH, SQUIDSBUFPRINT, and url.
Referenced by swapOut().
◆ packFirstLineInto()
|
protectedvirtual |
Implements Http::Message.
Definition at line 473 of file HttpRequest.cc.
References Packable::appendf(), effectiveRequestUri(), Http::Message::http_ver, HttpRequestMethod::image(), AnyP::ProtocolVersion::major, method, AnyP::ProtocolVersion::minor, AnyP::Uri::path(), SQUIDSBUFPH, SQUIDSBUFPRINT, and url.
◆ packInto()
|
inherited |
Definition at line 278 of file Message.cc.
References Packable::append().
◆ parse()
|
inherited |
Definition at line 80 of file Message.cc.
References assert, buf, Config, DBG_IMPORTANT, debugs, error(), headersEnd(), int, SquidConfig::maxReplyHeaderSize, Http::scHeaderTooLarge, Http::scInvalidHeader, Http::scNone, and sz.
Referenced by Adaptation::Icap::Xaction::parseHttpMsg().
◆ parseCharBuf()
|
inherited |
parseCharBuf() takes character buffer of HTTP headers (buf), which may not be NULL-terminated, and fills in an Http::Message structure. The parameter 'end' specifies the offset to the end of the reply headers. The caller may know where the end is, but is unable to NULL-terminate the buffer. This function returns true on success.
Definition at line 148 of file Message.cc.
References MemBuf::append(), MemBuf::buf, buf, MemBuf::clean(), MemBuf::init(), MemBuf::size, and MemBuf::terminate().
Referenced by store_client::readBody(), and urnHandleReply().
◆ parseFirstLine()
|
virtual |
Implements Http::Message.
Definition at line 295 of file HttpRequest.cc.
References DBG_IMPORTANT, debugs, findTrailingHTTPVersion(), Http::Message::http_ver, HttpRequestMethod::HttpRequestMethodXXX(), AnyP::ProtocolVersion::major, method, Http::METHOD_NONE, AnyP::ProtocolVersion::minor, AnyP::Uri::parse(), url, w_space, and xisspace.
◆ parseHeader() [1/3]
bool HttpRequest::parseHeader | ( | const char * | buffer, |
const size_t | size | ||
) |
Parses request header from the buffer. Use it in contexts where the Parser object not available.
Definition at line 662 of file HttpRequest.cc.
References Http::Message::header, HttpHeader::parse(), and size.
◆ parseHeader() [2/3]
|
protectedinherited |
Definition at line 226 of file Message.cc.
References SBuf::c_str(), Http::One::Parser::headerBlockSize(), Http::One::Parser::messageHeaderSize(), Http::One::Parser::mimeHeader(), Http::Message::psError, and Http::Message::psParsed.
◆ parseHeader() [3/3]
bool HttpRequest::parseHeader | ( | Http1::Parser & | hp | ) |
Parses request header using Parser. Use it in contexts where the Parser object is available.
Definition at line 655 of file HttpRequest.cc.
Referenced by htcpSpecifier::checkHit().
◆ persistent()
|
inherited |
- Return values
-
true the message sender asks to keep the connection open. false the message sender will close the connection.
Factors other than the headers may result in connection closure.
Definition at line 261 of file Message.cc.
References httpHeaderHasConnDir(), and Http::ProtocolVersion().
Referenced by clientReplyContext::buildReplyHeader(), HttpReply::hdrCacheInit(), and HttpStateData::sendRequest().
◆ pinnedConnection()
ConnStateData * HttpRequest::pinnedConnection | ( | ) |
Definition at line 669 of file HttpRequest.cc.
References clientConnectionManager, CbcPointer< Cbc >::get(), NULL, ConnStateData::pinned, ConnStateData::pinning, and CbcPointer< Cbc >::valid().
Referenced by FwdState::connectStart(), FwdState::fail(), PeerSelector::selectPinned(), FwdState::usePinned(), and TunnelStateData::usePinned().
◆ Pool()
|
inlinestaticprivate |
Definition at line 50 of file HttpRequest.h.
◆ prefixLen()
int HttpRequest::prefixLen | ( | ) | const |
Definition at line 370 of file HttpRequest.cc.
References Http::Message::header, HttpRequestMethod::image(), HttpHeader::len, SBuf::length(), method, AnyP::Uri::path(), and url.
Referenced by peerDigestFetchSetStats(), and clientReplyContext::traceReply().
◆ prepForDirect()
void HttpRequest::prepForDirect | ( | ) |
Definition at line 457 of file HttpRequest.cc.
References RequestFlags::auth_no_keytab, debugs, flags, peer_domain, and peer_login.
Referenced by TunnelStateData::connectDone(), FwdState::dispatch(), and switchToTunnel().
◆ prepForPeering()
void HttpRequest::prepForPeering | ( | const CachePeer & | peer | ) |
Definition at line 447 of file HttpRequest.cc.
References CachePeer::auth_no_keytab, RequestFlags::auth_no_keytab, debugs, CachePeer::domain, flags, CachePeer::host, CachePeer::login, CachePeer::options, CachePeer::originserver, peer_domain, and peer_login.
Referenced by TunnelStateData::connectDone(), FwdState::dispatch(), and switchToTunnel().
◆ putCc()
|
inherited |
Definition at line 34 of file Message.cc.
References Http::CACHE_CONTROL.
Referenced by HttpReply::make304().
◆ recordLookup()
void HttpRequest::recordLookup | ( | const Dns::LookupDetails & | detail | ) |
Definition at line 588 of file HttpRequest.cc.
References debugs, dnsWait, and Dns::LookupDetails::wait.
Referenced by ClientRequestContext::hostHeaderIpVerify(), DestinationDomainLookup::LookupDone(), SourceDomainLookup::LookupDone(), and PeerSelector::noteLookup().
◆ reset()
|
virtual |
Implements Http::Message.
Definition at line 169 of file HttpRequest.cc.
◆ sanityCheckStartLine()
|
protectedvirtual |
Checks the first line of an HTTP request is valid currently just checks the request method is present.
NP: Other errors are left for detection later in the parse.
Implements Http::Message.
Definition at line 269 of file HttpRequest.cc.
References buf, debugs, HERE(), HttpRequestMethod::HttpRequestMethodXXX(), Http::METHOD_NONE, and Http::scInvalidHeader.
Referenced by PrivateHttpRequest::doSanityCheckStartLine().
◆ setContentLength()
|
inherited |
Definition at line 253 of file Message.cc.
References Http::CONTENT_LENGTH.
◆ storeId()
const SBuf HttpRequest::storeId | ( | ) |
Returns the current StoreID for the request as a nul-terminated char*. Always returns the current id for the request (either the effective request URI or modified ID by the helper).
Definition at line 677 of file HttpRequest.cc.
References debugs, effectiveRequestUri(), String::size(), store_id, and StringToSBuf().
Referenced by clientReplyContext::cacheHit(), ClientHttpRequest::doCallouts(), and storeSwapMetaBuild().
◆ swapOut()
void HttpRequest::swapOut | ( | StoreEntry * | e | ) |
Definition at line 335 of file HttpRequest.cc.
References assert, StoreEntry::buffer(), StoreEntry::flush(), and pack().
Referenced by clientReplyContext::traceReply().
◆ UseCount()
|
inlinestatic |
Definition at line 50 of file HttpRequest.h.
Member Data Documentation
◆ adaptHistory_
|
mutableprivate |
Definition at line 119 of file HttpRequest.h.
Referenced by adaptHistory(), adaptHistoryImport(), clean(), inheritProperties(), and init().
◆ auth_user_request
Auth::UserRequest::Pointer HttpRequest::auth_user_request |
Definition at line 127 of file HttpRequest.h.
Referenced by Format::Format::assemble(), ClientHttpRequest::calloutsError(), clean(), ClientRequestContext::clientAccessCheckDone(), ErrorState::compileLegacyCode(), constructHelperQuery(), DelayId::DelayClient(), ClientRequestContext::hostHeaderVerifyFailed(), Log::Format::HttpdCombined(), Log::Format::HttpdCommon(), inheritProperties(), init(), Log::Format::SquidIcap(), Log::Format::SquidNative(), ClientHttpRequest::sslBumpEstablish(), and statClientRequests().
◆ body_pipe
|
inherited |
Definition at line 98 of file Message.h.
Referenced by bodyNibbled(), FwdState::checkRetriable(), HttpReply::clean(), clean(), ClientRequestContext::clientRedirectDone(), Adaptation::Ecap::MessageRep::clone(), HttpReply::clone(), clone(), FwdState::doneWithRetries(), Adaptation::Icap::ModXact::estimateVirginBody(), Adaptation::Icap::ModXact::finalizeLogInfo(), ClientHttpRequest::handleAdaptationFailure(), Client::handleAdaptedHeader(), init(), ClientHttpRequest::logRequest(), Adaptation::Icap::ModXact::prepEchoing(), HttpStateData::sendRequest(), Adaptation::Icap::InOut::setHeader(), Adaptation::Message::ShortCircuit(), Client::startAdaptation(), Client::startRequestBodyFlow(), Adaptation::Ecap::XactionRep::useAdapted(), and Adaptation::Ecap::XactionRep::useVirgin().
◆ cache_control
|
inherited |
Definition at line 77 of file Message.h.
Referenced by clean(), HttpStateData::haveParsedReplyHeaders(), HttpReply::hdrCacheClean(), HttpReply::hdrExpirationTime(), MimeIcon::load(), HttpReply::make304(), maybeCacheable(), ClientHttpRequest::onlyIfCached(), and HttpStateData::reusableReply().
◆ client_addr
Ip::Address HttpRequest::client_addr |
Definition at line 149 of file HttpRequest.h.
Referenced by ErrorState::ErrorState(), Format::Format::assemble(), ClientRequestContext::clientAccessCheck(), DelayId::DelayClient(), ClientHttpRequest::doCallouts(), Adaptation::Icap::ModXact::finalizeLogInfo(), getRangeOffsetLimit(), HttpStateData::handleMoreRequestBodyAvailable(), HttpStateData::httpBuildRequestHeader(), inheritProperties(), init(), manager(), PeerSelector::noteIp(), HttpStateData::processReplyBody(), ACLFilledChecklist::setRequest(), FwdState::Start(), and tunnelStart().
◆ clientConnectionManager
CbcPointer<ConnStateData> HttpRequest::clientConnectionManager |
The client connection manager, if known; Used for any response actions needed directly to the client. ie 1xx forwarding or connection pinning state changes
Definition at line 232 of file HttpRequest.h.
Referenced by Format::Format::assemble(), FwdState::completed(), copyResultsFromEntry(), FwdState::dispatch(), HttpStateData::handle1xx(), inheritProperties(), manager(), pinnedConnection(), HttpStateData::proceedAfter1xx(), clientReplyContext::processExpired(), clientReplyContext::processMiss(), HttpStateData::processReplyBody(), PeerSelector::resolveSelected(), ACLFilledChecklist::setRequest(), FwdState::successfullyConnectedToPeer(), and switchToTunnel().
◆ content_length
|
inherited |
Definition at line 84 of file Message.h.
Referenced by HttpReply::bodySize(), Http::Stream::buildRangeHeader(), HttpHdrRange::canonize(), StoreEntry::checkTooBig(), StoreEntry::checkTooSmall(), clientIsContentLengthValid(), HttpReply::expectingBody(), expectingBody(), Downloader::handleReply(), HttpReply::hdrCacheInit(), HttpStateData::persistentConnStatus(), HttpReply::redirect(), refreshIsCachable(), HttpStateData::sendRequest(), HttpReply::setHeaders(), storeLog(), clientReplyContext::storeNotOKTransferDone(), HttpStateData::truncateVirginBody(), and HttpReply::validatorsMatch().
◆ dnsWait
int HttpRequest::dnsWait |
Definition at line 159 of file HttpRequest.h.
Referenced by Format::Format::assemble(), inheritProperties(), init(), and recordLookup().
◆ downloader
CbcPointer<Downloader> HttpRequest::downloader |
Definition at line 235 of file HttpRequest.h.
Referenced by inheritProperties().
◆ error
Error HttpRequest::error |
Definition at line 161 of file HttpRequest.h.
Referenced by ClientHttpRequest::~ClientHttpRequest(), clearError(), clone(), detailError(), AccessLogEntry::error(), inheritProperties(), init(), ACLSquidErrorStrategy::match(), ConnStateData::serveDelayedError(), ClientHttpRequest::updateCounters(), AccessLogEntry::updateError(), and ClientHttpRequest::updateError().
◆ etag
String HttpRequest::etag |
Definition at line 191 of file HttpRequest.h.
Referenced by clean(), clone(), HttpStateData::httpBuildRequestHeader(), clientReplyContext::processExpired(), clientReplyContext::restoreState(), and clientReplyContext::saveState().
◆ extacl_log
String HttpRequest::extacl_log |
Definition at line 182 of file HttpRequest.h.
Referenced by Format::Format::assemble(), clean(), clone(), copyResultsFromEntry(), and init().
◆ extacl_message
String HttpRequest::extacl_message |
Definition at line 184 of file HttpRequest.h.
Referenced by clean(), clone(), ErrorState::compileLegacyCode(), copyResultsFromEntry(), and init().
◆ extacl_passwd
String HttpRequest::extacl_passwd |
Definition at line 180 of file HttpRequest.h.
Referenced by clean(), copyResultsFromEntry(), inheritProperties(), and init().
◆ extacl_user
String HttpRequest::extacl_user |
Definition at line 178 of file HttpRequest.h.
Referenced by Format::Format::assemble(), clean(), copyResultsFromEntry(), AccessLogEntry::getExtUser(), inheritProperties(), init(), ACLExtUser::match(), and statClientRequests().
◆ flags
RequestFlags HttpRequest::flags |
Definition at line 141 of file HttpRequest.h.
Referenced by HttpStateData::HttpStateData(), Ssl::ServerBump::ServerBump(), clientReplyContext::buildReplyHeader(), HttpStateData::buildRequestPrefix(), clientReplyContext::cacheHit(), ClientRequestContext::checkNoCacheDone(), CheckQuickAbortIsReasonable(), FwdState::checkRetry(), clientReplyContext::checkTransferDone(), ClientRequestContext::clientAccessCheck(), ClientRequestContext::clientAccessCheckDone(), TunnelStateData::clientExpectsConnectResponse(), ClientRequestContext::clientRedirectDone(), FwdState::completed(), conditional(), HttpStateData::continueAfterParsingHeader(), HttpStateData::decideIfWeDoRanges(), FwdState::dispatch(), ClientHttpRequest::doCallouts(), errorAppendEntry(), ClientHttpRequest::handleAdaptedHeader(), clientReplyContext::handleIMSReply(), Http::One::Server::handleReply(), ClientRequestContext::hostHeaderIpVerify(), ClientRequestContext::hostHeaderVerify(), ClientRequestContext::hostHeaderVerifyFailed(), HttpStateData::httpBuildRequestHeader(), httpMaybeRemovePublic(), clientReplyContext::identifyFoundObject(), clientReplyContext::identifyStoreObject(), inheritProperties(), init(), HappyConnOpener::makeError(), manager(), ACLDestinationIP::match(), ACLDestinationASNStrategy::match(), ACLProxyAuth::matchProxyAuth(), maybeCacheable(), netdbExchangeStart(), ErrorState::NewForwarding(), FwdState::noteConnection(), PeerSelector::noteIp(), peerDigestRequest(), HttpStateData::peerSupportsConnectionPinning(), FwdState::pinnedCanRetry(), prepForDirect(), prepForPeering(), clientReplyContext::processConditional(), clientReplyContext::processExpired(), clientReplyContext::processMiss(), HttpStateData::processReplyBody(), HttpStateData::processReplyHeader(), ClientHttpRequest::processRequest(), HttpStateData::processSurrogateControl(), FwdState::reforward(), clientReplyContext::replyStatus(), PeerSelector::resolveSelected(), HttpStateData::reusableReply(), FwdState::secureConnectionToPeer(), FwdState::secureConnectionToPeerIfNeeded(), PeerSelector::selectMore(), clientReplyContext::sendNotModified(), HttpStateData::sendRequest(), clientReplyContext::sendStreamError(), clientReplyContext::setReplyToError(), ClientRequestContext::sslBumpAccessCheck(), ClientHttpRequest::sslBumpStart(), FwdState::Start(), FwdState::start(), HappyConnOpener::startConnecting(), FwdState::usePinned(), and TunnelStateData::usePinned().
◆ forcedBodyContinuation
bool HttpRequest::forcedBodyContinuation |
Definition at line 194 of file HttpRequest.h.
Referenced by HttpStateData::handle1xx(), inheritProperties(), and init().
◆ hdr_sz
|
inherited |
Definition at line 82 of file Message.h.
Referenced by StoreEntry::append(), HttpReply::clone(), clone(), StoreEntry::contentLen(), MemObject::expectedReplySize(), Adaptation::Icap::ModXact::finalizeLogInfo(), Http::Tunneler::handleResponse(), MemObject::markEndOfReplyHeaders(), Adaptation::Icap::Xaction::parseHttpMsg(), clientReplyContext::processReplyAccess(), clientReplyContext::processReplyAccessResult(), MemObject::readAheadPolicyCanRead(), MemStore::updateHeadersOrThrow(), and StoreEntry::write().
◆ header
|
inherited |
Definition at line 75 of file Message.h.
Referenced by StoreEntry::adjustVary(), Ftp::Gateway::appendSuccessHeader(), Format::Format::assemble(), HttpStateData::blockSwitchingProtocols(), ErrorState::BuildHttpReply(), Http::Stream::buildRangeHeader(), clientReplyContext::buildReplyHeader(), ESIVarState::buildVary(), canHandle1xx(), HttpReply::clean(), clean(), ClientRequestContext::clientAccessCheck(), clientGetMoreData(), clientIfRangeMatch(), clientIsContentLengthValid(), Adaptation::Ecap::MessageRep::clone(), HttpReply::clone(), clone(), ErrorState::compileLegacyCode(), conditional(), Adaptation::Icap::Options::configure(), Ftp::Relay::createHttpReply(), ErrorState::Dump(), Adaptation::Icap::ModXact::encapsulateHead(), ESIContextNew(), Adaptation::Icap::ModXact::estimateVirginBody(), HttpReply::expectingBody(), expectingBody(), Mgr::Action::fillEntry(), HttpStateData::forwardUpgrade(), Ftp::Gateway::ftpAuthRequired(), ftpSendStor(), gopherMimeCreate(), Ftp::Server::handleFeatReply(), StoreEntry::hasOneOfEtags(), HttpStateData::haveParsedReplyHeaders(), HttpReply::hdrCacheInit(), hdrCacheInit(), HttpReply::hdrExpirationTime(), ClientRequestContext::hostHeaderVerify(), ClientRequestContext::hostHeaderVerifyFailed(), HttpStateData::httpBuildRequestHeader(), Log::Format::HttpdCombined(), httpMakeVaryMark(), Ftp::HttpReplyWrapper(), MimeIcon::load(), Ftp::Gateway::loginFailed(), HttpReply::make304(), Adaptation::Icap::ModXact::makeRequestHeaders(), ACLReplyHeaderStrategy< header >::match(), ACLRequestHeaderStrategy< header >::match(), ACLHTTPRepHeaderStrategy::match(), ACLHTTPReqHeaderStrategy::match(), pack(), HttpReply::packHeadersUsingFastPacker(), parseHeader(), Adaptation::Icap::OptXact::parseResponse(), peerDigestRequest(), prefixLen(), Adaptation::Icap::ModXact::prepEchoing(), Ftp::PrintReply(), clientReplyContext::processConditional(), clientReplyContext::processExpired(), HttpStateData::processReplyHeader(), purgeEntriesByHeader(), HttpReply::recreateOnNotModified(), HttpReply::redirect(), HttpReply::removeIrrelevantContentLength(), HttpReply::removeStaleWarnings(), HttpStateData::reusableReply(), HttpReply::setHeaders(), UrnState::setUriResFromRequest(), Log::Format::SquidReferer(), Log::Format::SquidUserAgent(), Mgr::Inquirer::start(), CacheManager::start(), HttpStateData::statusIfComplete(), urlCheckRequest(), urnHandleReply(), Adaptation::Ecap::XactionRep::useAdapted(), Adaptation::Ecap::XactionRep::useVirgin(), HttpReply::validatorsMatch(), varyEvaluateMatch(), Http::One::Server::writeControlMsgAndCall(), Ftp::Server::writeCustomReply(), Ftp::Server::writeErrorReply(), Ftp::Server::writeForwardedReply(), and Ftp::Server::writeForwardedReplyAndCall().
◆ hier
HierarchyLogEntry HttpRequest::hier |
Definition at line 157 of file HttpRequest.h.
Referenced by Client::adjustBodyBytesRead(), clone(), ErrorState::compileLegacyCode(), StoreEntry::complete(), FwdState::completed(), FwdState::connectStart(), ErrorState::Dump(), gopherReadReply(), PeerSelector::handlePath(), ACLHierCodeStrategy::match(), HttpStateData::processReplyHeader(), HttpStateData::readReply(), TunnelStateData::readServer(), PeerSelector::resolveSelected(), FwdState::retryOrBail(), TunnelStateData::retryOrBail(), TunnelStateData::sendError(), clientReplyContext::sendMoreData(), Client::sentRequestBody(), ConnStateData::serveDelayedError(), Client::serverComplete(), TunnelStateData::startConnecting(), switchToTunnel(), FwdState::syncHierNote(), TunnelStateData::syncHierNote(), StoreEntry::timestampsSet(), ClientHttpRequest::updateCounters(), TunnelStateData::writeServerDone(), and HttpStateData::wroteLast().
◆ http_ver
|
inherited |
HTTP-Version field in the first line of the message. see RFC 7230 section 3.1
Definition at line 73 of file Message.h.
Referenced by netdbExchangeState::netdbExchangeState(), Format::Format::assemble(), ErrorState::BuildHttpReply(), canHandle1xx(), ClientRequestContext::clientRedirectDone(), HttpReply::clone(), clone(), ErrorState::compileLegacyCode(), ErrorState::Dump(), Adaptation::Icap::ModXact::encapsulateHead(), HttpStateData::forwardUpgrade(), HttpReply::hdrCacheInit(), htcpClear(), htcpQuery(), HttpStateData::httpBuildRequestHeader(), pack(), packFirstLineInto(), parseFirstLine(), switchToTunnel(), and tunnelStart().
◆ icapHistory_
|
mutableprivate |
Definition at line 122 of file HttpRequest.h.
Referenced by clean(), icapHistory(), inheritProperties(), and init().
◆ ims
time_t HttpRequest::ims |
Definition at line 145 of file HttpRequest.h.
Referenced by clone(), clientReplyContext::handleIMSReply(), init(), and clientReplyContext::processConditional().
◆ imslen
int HttpRequest::imslen |
Definition at line 147 of file HttpRequest.h.
Referenced by clone(), clientReplyContext::handleIMSReply(), init(), and clientReplyContext::processConditional().
◆ indirect_client_addr
Ip::Address HttpRequest::indirect_client_addr |
Definition at line 152 of file HttpRequest.h.
Referenced by ClientRequestContext::clientAccessCheck(), DelayId::DelayClient(), AccessLogEntry::getLogClientIp(), inheritProperties(), init(), manager(), and ACLFilledChecklist::setRequest().
◆ lastmod
time_t HttpRequest::lastmod |
Definition at line 167 of file HttpRequest.h.
Referenced by clone(), HttpStateData::httpBuildRequestHeader(), init(), clientReplyContext::processExpired(), clientReplyContext::restoreState(), and clientReplyContext::saveState().
◆ masterXaction
MasterXaction::Pointer HttpRequest::masterXaction |
Definition at line 238 of file HttpRequest.h.
Referenced by Format::Format::assemble(), clone(), htcpSpecifier::codeContextGist(), AccessLogEntry::codeContextGist(), htcpSpecifier::detailCodeContext(), AccessLogEntry::detailCodeContext(), Acl::TransactionInitiator::match(), ACLAtStepStrategy::match(), and UrnState::setUriResFromRequest().
◆ method
HttpRequestMethod HttpRequest::method |
Definition at line 114 of file HttpRequest.h.
Referenced by Ftp::Gateway::Gateway(), Ssl::ServerBump::ServerBump(), ConnStateData::abortChunkedRequestBody(), asnCacheStart(), Format::Format::assemble(), ErrorState::BuildHttpReply(), HttpStateData::buildRequestPrefix(), clientReplyContext::cacheHit(), canonicalCleanUrl(), FwdState::checkRetriable(), ClientRequestContext::clientAccessCheckDone(), clientGetMoreData(), clientIsContentLengthValid(), clientProcessRequest(), ClientRequestContext::clientRedirectDone(), clone(), ErrorState::compileLegacyCode(), constructHelperQuery(), FwdState::dispatch(), ClientHttpRequest::doCallouts(), clientReplyContext::doGetMoreData(), ErrorState::Dump(), effectiveRequestUri(), Adaptation::Icap::ModXact::encapsulateHead(), esiBufferRecipient(), FromUrl(), FromUrlXXX(), ftpSendPassive(), ClientHttpRequest::gotEnough(), ClientHttpRequest::handleAdaptedHeader(), HttpStateData::haveParsedReplyHeaders(), ClientRequestContext::hostHeaderVerify(), ClientRequestContext::hostHeaderVerifyFailed(), htcpClear(), htcpQuery(), httpStart(), init(), initHTTP(), HttpStateData::keepaliveAccounting(), ACLMethodStrategy::match(), maybeCacheable(), Client::maybePurgeOthers(), FwdState::noteConnection(), pack(), packFirstLineInto(), parseFirstLine(), peerDigestRequest(), HttpStateData::persistentConnStatus(), prefixLen(), clientReplyContext::processExpired(), clientReplyContext::processMiss(), clientReplyContext::processOnlyIfCachedMiss(), clientReplyContext::processReplyAccessResult(), ClientHttpRequest::processRequest(), clientReplyContext::purgeDoPurge(), purgeEntriesByHeader(), clientReplyContext::replyStatus(), FwdState::secureConnectionToPeerIfNeeded(), PeerSelector::selectMore(), PeerSelector::selectSomeParent(), clientReplyContext::sendNotModified(), clientReplyContext::sendNotModifiedOrPreconditionFailedError(), Ftp::Server::setReply(), clientReplyContext::setReplyToReply(), ClientRequestContext::sslBumpAccessCheck(), Client::startAdaptation(), clientReplyContext::startError(), HttpStateData::statusIfComplete(), storeGetPublicByRequest(), switchToTunnel(), testHttpRequest::testCreateFromUrl(), testHttpRequest::testIPv6HostColonBug(), clientReplyContext::traceReply(), HttpStateData::truncateVirginBody(), tunnelStart(), urlCheckRequest(), and urnHandleReply().
◆ my_addr
Ip::Address HttpRequest::my_addr |
Definition at line 155 of file HttpRequest.h.
Referenced by DelayId::DelayClient(), ClientHttpRequest::doCallouts(), getRangeOffsetLimit(), inheritProperties(), init(), manager(), ACLFilledChecklist::setRequest(), and tunnelStart().
◆ myportname
String HttpRequest::myportname |
Definition at line 174 of file HttpRequest.h.
Referenced by clean(), inheritProperties(), init(), manager(), and ACLMyPortNameStrategy::match().
◆ peer_domain
char* HttpRequest::peer_domain |
Definition at line 172 of file HttpRequest.h.
Referenced by HttpStateData::httpBuildRequestHeader(), init(), prepForDirect(), and prepForPeering().
◆ peer_host
char* HttpRequest::peer_host |
Definition at line 165 of file HttpRequest.h.
Referenced by TunnelStateData::connectDone(), init(), HttpStateData::sendRequest(), and switchToTunnel().
◆ peer_login
char* HttpRequest::peer_login |
Definition at line 163 of file HttpRequest.h.
Referenced by init(), prepForDirect(), and prepForPeering().
◆ pstate
|
inherited |
Definition at line 95 of file Message.h.
Referenced by HttpReply::clone(), clone(), HttpReply::init(), and init().
◆ range
HttpHdrRange* HttpRequest::range |
Definition at line 143 of file HttpRequest.h.
Referenced by CheckQuickAbortIsReasonable(), clean(), HttpStateData::decideIfWeDoRanges(), hdrCacheInit(), ignoreRange(), init(), ClientHttpRequest::mRangeCLen(), multipartRangeRequest(), and clientReplyContext::processReplyAccessResult().
◆ rangeOffsetLimit
|
mutableprivate |
Definition at line 259 of file HttpRequest.h.
Referenced by getRangeOffsetLimit(), and init().
◆ sources
|
inherited |
Definition at line 100 of file Message.h.
Referenced by Ftp::Gateway::appendSuccessHeader(), Ftp::Relay::forwardReply(), gopherReadReply(), Http::Tunneler::handleResponse(), HttpReply::inheritProperties(), inheritProperties(), Acl::ConnectionsEncrypted::match(), HttpStateData::processReplyHeader(), WhoisState::setReplyToOK(), Ftp::Relay::startDataDownload(), and Adaptation::Ecap::XactionRep::updateSources().
◆ store_id
String HttpRequest::store_id |
If defined, store_id_program mapped the request URL to this ID. Store uses this ID (and not the URL) to find and store entries, avoiding caching duplicate entries when different URLs point to "essentially the same" cachable resource.
Definition at line 139 of file HttpRequest.h.
Referenced by ClientRequestContext::clientStoreIdDone(), and storeId().
◆ tag
String HttpRequest::tag |
Definition at line 176 of file HttpRequest.h.
Referenced by Format::Format::assemble(), clean(), clone(), copyResultsFromEntry(), DelayId::DelayClient(), init(), and ACLTagStrategy::match().
◆ theNotes
|
private |
annotations added by the note directive and helpers and(or) by annotate_transaction/annotate_client ACLs.
Definition at line 263 of file HttpRequest.h.
Referenced by clean(), hasNotes(), inheritProperties(), and notes().
◆ url
AnyP::Uri HttpRequest::url |
Definition at line 115 of file HttpRequest.h.
Referenced by Ssl::ServerBump::ServerBump(), Http::Tunneler::Tunneler(), asnCacheStart(), Format::Format::assemble(), HttpStateData::buildRequestPrefix(), clientReplyContext::cacheHit(), canonicalCleanUrl(), HttpStateData::checkDateSkew(), DestinationIPLookup::checkForAsync(), PeerSelector::checkNetdbDirect(), clean(), ClientRequestContext::clientRedirectDone(), clone(), ErrorState::compileLegacyCode(), TunnelStateData::connectDone(), FwdState::connectStart(), HttpStateData::continueAfterParsingHeader(), FwdState::dispatch(), doV2Query(), ErrorState::Dump(), effectiveRequestUri(), Adaptation::Icap::ModXact::encapsulateHead(), FromUrl(), FromUrlXXX(), ftpFail(), ftpReadType(), ftpSendType(), ftpSendUser(), ftpTrySlashHack(), TunnelStateData::getHost(), gopher_request_parse(), gopherSendComplete(), PeerSelector::handleHtcpParentMiss(), PeerSelector::handleIcpParentMiss(), ClientRequestContext::hostHeaderVerify(), htcpTstReply(), HttpStateData::httpBuildRequestHeader(), clientReplyContext::identifyFoundObject(), init(), initHTTP(), ConnStateData::initiateTunneledRequest(), ACLDestinationIP::match(), ACLUrlLoginStrategy::match(), ACLUrlPathStrategy::match(), ACLDestinationASNStrategy::match(), ACLDestinationDomainStrategy::match(), ACLProtocolStrategy::match(), ACLServerNameStrategy::match(), ACLUrlPortStrategy::match(), maybeCacheable(), neighborsHtcpReply(), neighborsUdpAck(), netdbExchangeStart(), FwdState::noteConnection(), TunnelStateData::noteConnection(), PeerSelector::noteIp(), PeerSelector::noteIps(), operator<<(), pack(), packFirstLineInto(), parseFirstLine(), peerDigestRequest(), prefixLen(), HttpStateData::processReplyBody(), HttpStateData::processReplyHeader(), purgeEntriesByHeader(), clientReplyContext::purgeRequest(), PeerSelector::resolveSelected(), FwdState::secureConnectionToPeerIfNeeded(), PeerSelector::selectAllParents(), PeerSelector::selectMore(), PeerSelector::selectSomeDirect(), PeerSelector::selectSomeNeighbor(), PeerSelector::selectSomeParent(), HttpStateData::sendRequest(), UrnState::setUriResFromRequest(), PeerPoolMgr::start(), FwdState::Start(), TunnelStateData::startConnecting(), FwdState::successfullyConnectedToPeer(), testHttpRequest::testCreateFromUrl(), testHttpRequest::testIPv6HostColonBug(), urlCheckRequest(), FwdState::usePinned(), TunnelStateData::usePinned(), Adaptation::Service::wants(), and whoisStart().
◆ vary_headers
SBuf HttpRequest::vary_headers |
Definition at line 170 of file HttpRequest.h.
Referenced by clean(), clone(), init(), clientReplyContext::processExpired(), and clientReplyContext::purgeDoPurge().
◆ x_forwarded_for_iterator
String HttpRequest::x_forwarded_for_iterator |
Definition at line 187 of file HttpRequest.h.
Referenced by ClientRequestContext::clientAccessCheck().
The documentation for this class was generated from the following files:
- src/HttpRequest.h
- src/HttpRequest.cc
- src/tests/stub_HttpRequest.cc