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) , 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 | |
PrivateHttpRequest (const MasterXaction::Pointer &mx) | |
bool | doSanityCheckStartLine (const char *b, const size_t h, Http::StatusCode *e) |
void | reset () override |
void | initHTTP (const HttpRequestMethod &aMethod, AnyP::ProtocolType aProtocol, const char *schemeImage, const char *aUrlpath) |
HttpRequest * | clone () const override |
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) override |
bool | expectingBody (const HttpRequestMethod &unused, int64_t &) const override |
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 |
void | configureContentLengthInterpreter (Http::ContentLengthInterpreter &) override |
configures the interpreter as needed More... | |
Http::StatusCode | checkEntityFraming () const |
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 &) |
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 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 () |
bool | parseHeader (Http1::Parser &, Http::ContentLengthInterpreter &) |
void | packFirstLineInto (Packable *p, bool full_uri) const override |
bool | sanityCheckStartLine (const char *buf, const size_t hdr_len, Http::StatusCode *error) override |
void | hdrCacheInit () override |
bool | inheritProperties (const Http::Message *) override |
Private Member Functions | |
MEMPROXY_CLASS (HttpRequest) | |
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
wrapper for testing HttpRequest object private and protected functions
Definition at line 36 of file testHttpRequest.cc.
Member Typedef Documentation
◆ Pointer
|
inherited |
Definition at line 53 of file HttpRequest.h.
Member Enumeration Documentation
◆ ParseState
|
inherited |
◆ Sources
|
inherited |
Constructor & Destructor Documentation
◆ PrivateHttpRequest()
|
inline |
Definition at line 39 of file testHttpRequest.cc.
Member Function Documentation
◆ adaptHistory()
|
inherited |
Definition at line 404 of file HttpRequest.cc.
References HttpRequest::adaptHistory_, and debugs.
Referenced by HttpRequest::adaptLogHistory(), Format::Format::assemble(), HttpRequest::inheritProperties(), Adaptation::Icap::ModXact::makeRequestHeaders(), Adaptation::Ecap::XactionRep::masterxSharedValue(), Acl::AdaptationServiceCheck::match(), Adaptation::Icap::ModXact::parseIcapHead(), Adaptation::Iterator::start(), Adaptation::Iterator::step(), Adaptation::Ecap::XactionRep::updateHistory(), Adaptation::Iterator::updatePlan(), and Ftp::Server::writeErrorReply().
◆ adaptHistoryImport()
|
inherited |
Definition at line 421 of file HttpRequest.cc.
References HttpRequest::adaptHistory_, and Must.
◆ adaptLogHistory()
|
inherited |
Definition at line 415 of file HttpRequest.cc.
References HttpRequest::adaptHistory(), and Log::TheConfig.
Referenced by Adaptation::Icap::ModXact::parseIcapHead(), prepareLogWithRequestDetails(), Adaptation::Ecap::XactionRep::start(), Adaptation::Ecap::XactionRep::swanSong(), and Adaptation::Ecap::XactionRep::updateHistory().
◆ bodyNibbled()
|
inherited |
Definition at line 440 of file HttpRequest.cc.
References Http::Message::body_pipe, and BodyPipe::consumedSize().
Referenced by FwdState::checkRetry(), and FwdState::reforward().
◆ canHandle1xx()
|
inherited |
Definition at line 635 of file HttpRequest.cc.
References Http::EXPECT, HttpHeader::has(), Http::Message::header, Http::Message::http_ver, and Http::ProtocolVersion().
Referenced by HttpStateData::handle1xx().
◆ canonicalCleanUrl()
|
inherited |
- Returns
- a pointer to a local static buffer containing request URI that honors strip_query_terms and %-encodes unsafe URI characters
Definition at line 814 of file HttpRequest.cc.
References HttpRequest::effectiveRequestUri(), AnyP::Uri::getScheme(), HttpRequest::method, HttpRequest::url, and urlCanonicalCleanWithoutRequest().
Referenced by ClientHttpRequest::setLogUriToRequestUri(), and urlCanonicalFakeHttps().
◆ checkEntityFraming()
|
inherited |
Check whether the message framing headers are valid.
- Returns
- Http::scNone or an HTTP error status
Definition at line 647 of file HttpRequest.cc.
References HttpHeader::chunked(), HttpHeader::conflictingContentLength(), Http::Message::content_length, Http::Message::header, Http::Message::http_ver, HttpRequestMethod::id(), HttpRequest::method, Http::METHOD_DELETE, Http::METHOD_GET, Http::METHOD_HEAD, Http::METHOD_LINK, Http::METHOD_POST, Http::METHOD_PUT, Http::METHOD_UNLINK, Http::ProtocolVersion(), Http::scBadRequest, Http::scLengthRequired, Http::scNone, Http::scNotImplemented, and HttpHeader::unsupportedTe().
Referenced by clientProcessRequest().
◆ clean()
|
protectedinherited |
Definition at line 121 of file HttpRequest.cc.
References HttpRequest::adaptHistory_, HttpRequest::auth_user_request, Http::Message::body_pipe, Http::Message::cache_control, HttpHeader::clean(), String::clean(), AnyP::Uri::clear(), SBuf::clear(), HttpRequest::etag, HttpRequest::extacl_log, HttpRequest::extacl_message, HttpRequest::extacl_passwd, HttpRequest::extacl_user, Http::Message::header, HttpRequest::icapHistory_, HttpRequest::myportname, HttpRequest::range, HttpRequest::tag, HttpRequest::theNotes, HttpRequest::url, and HttpRequest::vary_headers.
Referenced by HttpRequest::~HttpRequest(), and HttpRequest::reset().
◆ clearError()
|
inherited |
Definition at line 465 of file HttpRequest.cc.
References Error::clear(), debugs, and HttpRequest::error.
Referenced by Adaptation::Icap::ModXact::clearError(), FwdState::connectStart(), and Adaptation::Iterator::step().
◆ clone()
|
overridevirtualinherited |
Implements Http::Message.
Definition at line 175 of file HttpRequest.cc.
References HttpRequest::HttpRequest(), HttpHeader::append(), assert, Http::Message::body_pipe, HttpRequest::error, HttpRequest::etag, HttpRequest::extacl_log, HttpRequest::extacl_message, Http::Message::hdr_sz, HttpRequest::hdrCacheInit(), Http::Message::header, HttpRequest::hier, Http::Message::http_ver, HttpRequest::ims, HttpRequest::imslen, HttpRequest::inheritProperties(), HttpRequest::lastmod, HttpRequest::masterXaction, HttpRequest::method, Http::Message::pstate, HttpRequest::tag, HttpRequest::url, and HttpRequest::vary_headers.
Referenced by ClientRequestContext::clientRedirectDone().
◆ conditional()
|
inherited |
Definition at line 572 of file HttpRequest.cc.
References HttpRequest::flags, HttpHeader::has(), Http::Message::header, Http::IF_MATCH, Http::IF_NONE_MATCH, and RequestFlags::ims.
Referenced by clientReplyContext::cacheHit().
◆ configureContentLengthInterpreter()
|
inlineoverridevirtualinherited |
Implements Http::Message.
Definition at line 249 of file HttpRequest.h.
◆ detailError()
|
inlineinherited |
Definition at line 101 of file HttpRequest.h.
References HttpRequest::error, and Error::update().
Referenced by Adaptation::Icap::ModXact::detailError(), ClientHttpRequest::handleAdaptationBlock(), Client::handleAdaptationBlocked(), Client::handledEarlyAdaptationAbort(), and ClientHttpRequest::noteBodyProducerAborted().
◆ doSanityCheckStartLine()
|
inline |
Definition at line 40 of file testHttpRequest.cc.
References HttpRequest::sanityCheckStartLine().
Referenced by TestHttpRequest::testSanityCheckStartLine().
◆ effectiveRequestUri()
|
inherited |
Definition at line 744 of file HttpRequest.cc.
References AnyP::Uri::absolute(), AnyP::Uri::authority(), AnyP::Uri::getScheme(), HttpRequestMethod::id(), HttpRequest::method, Http::METHOD_CONNECT, AnyP::PROTO_AUTHORITY_FORM, and HttpRequest::url.
Referenced by Ssl::ServerBump::ServerBump(), Format::Format::assemble(), ConnStateData::buildFakeRequest(), HttpStateData::buildRequestPrefix(), HttpRequest::canonicalCleanUrl(), carpSelectParent(), ClientRequestContext::clientAccessCheckDone(), ClientRequestContext::clientRedirectDone(), ErrorState::compileLegacyCode(), AccessLogEntry::effectiveVirginUrl(), ClientRequestContext::hostHeaderVerifyFailed(), htcpClear(), HttpStateData::httpBuildRequestHeader(), Client::maybePurgeOthers(), HttpRequest::packFirstLineInto(), clientReplyContext::purgeAllCached(), clientReplyContext::purgeDoPurge(), refreshCheck(), ClientHttpRequest::resetRequest(), ClientHttpRequest::resetRequestXXX(), HttpRequest::storeId(), PeerSelector::url(), Ftp::UrlWith2f(), and ACLFilledChecklist::verifyAle().
◆ expectingBody()
|
overridevirtualinherited |
Implements Http::Message.
Definition at line 488 of file HttpRequest.cc.
References HttpHeader::chunked(), Http::Message::content_length, and Http::Message::header.
◆ firstLineBuf()
|
inherited |
Definition at line 270 of file Message.cc.
◆ FromUrl()
|
staticinherited |
Definition at line 517 of file HttpRequest.cc.
References HttpRequest::HttpRequest(), HttpRequest::method, and HttpRequest::url.
Referenced by Downloader::buildRequest(), HttpRequest::FromUrlXXX(), Ftp::Server::parseOneRequest(), TestHttpRequest::testCreateFromUrl(), and TestHttpRequest::testIPv6HostColonBug().
◆ FromUrlXXX()
|
staticinherited |
- Deprecated:
- use SBuf variant instead
Definition at line 528 of file HttpRequest.cc.
References HttpRequest::FromUrl(), HttpRequest::method, and HttpRequest::url.
Referenced by Http::One::Server::buildHttpRequest(), clientBeginRequest(), htcpUnpackSpecifier(), icpGetRequest(), MimeIcon::load(), netdbExchangeStart(), peerCountMcastPeersCreateAndSend(), peerDigestRequest(), UrnState::setUriResFromRequest(), Mgr::Inquirer::start(), and storeDigestRewriteStart().
◆ getRangeOffsetLimit()
|
inherited |
Definition at line 594 of file HttpRequest.cc.
References Acl::Answer::allowed(), HttpRequest::client_addr, Config, debugs, ACLChecklist::fastCheck(), ACLFilledChecklist::my_addr, HttpRequest::my_addr, HttpRequest::rangeOffsetLimit, SquidConfig::rangeOffsetLimit, and ACLFilledChecklist::src_addr.
Referenced by Http::Stream::buildRangeHeader(), CheckQuickAbortIsReasonable(), and HttpStateData::decideIfWeDoRanges().
◆ hasNotes()
|
inlineinherited |
Definition at line 247 of file HttpRequest.h.
References NotePairs::empty(), and HttpRequest::theNotes.
Referenced by Http::One::Server::buildHttpRequest().
◆ hdrCacheInit()
|
overrideprotectedvirtualinherited |
Reimplemented from Http::Message.
Definition at line 379 of file HttpRequest.cc.
References assert, HttpHeader::getRange(), Http::Message::hdrCacheInit(), Http::Message::header, and HttpRequest::range.
Referenced by HttpRequest::clone().
◆ httpMsgParseError()
|
virtualinherited |
Reimplemented in HttpReply.
Definition at line 221 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 151 of file Message.cc.
References assert, httpMsgIsolateStart(), Http::Message::psParsed, Http::Message::psReadyToParseHeaders, and Http::Message::psReadyToParseStartLine.
◆ httpRequestPack()
|
staticinherited |
◆ icapHistory()
|
inherited |
Definition at line 389 of file HttpRequest.cc.
References debugs, HttpRequest::icapHistory_, IcapLogfileStatus, LOG_ENABLE, and Log::TheConfig.
Referenced by Adaptation::AccessCheck::AccessCheck(), ClientHttpRequest::doCallouts(), Adaptation::Icap::ModXact::finalizeLogInfo(), HttpRequest::inheritProperties(), ClientHttpRequest::noteAdaptationAclCheckDone(), prepareLogWithRequestDetails(), and Adaptation::Icap::ModXactLauncher::updateHistory().
◆ ignoreRange()
|
inherited |
Definition at line 621 of file HttpRequest.cc.
References debugs, and HttpRequest::range.
Referenced by clientInterpretRequestHeaders(), HttpStateData::httpBuildRequestHeader(), clientReplyContext::setReplyToError(), clientReplyContext::setReplyToReply(), and clientReplyContext::setReplyToStoreEntry().
◆ inheritProperties()
|
overrideprotectedvirtualinherited |
Implements Http::Message.
Definition at line 214 of file HttpRequest.cc.
References HttpRequest::adaptHistory(), HttpRequest::adaptHistory_, HttpRequest::auth_user_request, HttpRequest::client_addr, HttpRequest::clientConnectionManager, RequestFlags::cloneAdaptationImmune(), HttpRequest::dnsWait, HttpRequest::downloader, HttpRequest::error, HttpRequest::extacl_passwd, HttpRequest::extacl_user, HttpRequest::flags, HttpRequest::forcedBodyContinuation, HttpRequest::icapHistory(), HttpRequest::icapHistory_, HttpRequest::indirect_client_addr, HttpRequest::my_addr, HttpRequest::myportname, Http::Message::sources, and HttpRequest::theNotes.
Referenced by HttpRequest::clone().
◆ init()
|
protectedinherited |
Definition at line 76 of file HttpRequest.cc.
References HttpRequest::adaptHistory_, HttpRequest::auth_user_request, Http::Message::body_pipe, AnyP::Uri::clear(), Error::clear(), HttpRequest::client_addr, HttpRequest::dnsWait, HttpRequest::error, HttpRequest::extacl_log, HttpRequest::extacl_message, HttpRequest::extacl_passwd, HttpRequest::extacl_user, HttpRequest::flags, HttpRequest::forcedBodyContinuation, HttpRequest::icapHistory_, HttpRequest::ims, HttpRequest::imslen, HttpRequest::indirect_client_addr, HttpRequest::lastmod, HttpRequest::method, Http::METHOD_NONE, HttpRequest::my_addr, HttpRequest::myportname, null_string, HttpRequest::peer_domain, HttpRequest::peer_host, HttpRequest::peer_login, Http::Message::psReadyToParseStartLine, Http::Message::pstate, HttpRequest::range, HttpRequest::rangeOffsetLimit, Ip::Address::setEmpty(), HttpRequest::tag, HttpRequest::url, and HttpRequest::vary_headers.
Referenced by HttpRequest::HttpRequest(), and HttpRequest::reset().
◆ initHTTP()
|
inherited |
Definition at line 68 of file HttpRequest.cc.
References HttpRequest::method, AnyP::Uri::path(), AnyP::Uri::setScheme(), and HttpRequest::url.
Referenced by HttpRequest::HttpRequest().
◆ manager()
|
inherited |
Definition at line 774 of file HttpRequest.cc.
References SquidConfig::accessList, ACLFilledChecklist::al, Acl::Answer::allowed(), HttpRequest::client_addr, Server::clientConnection, HttpRequest::clientConnectionManager, COMM_INTERCEPTION, COMM_TRANSPARENT, Config, ACLChecklist::fastCheck(), HttpRequest::flags, RequestFlags::ignoreCc, HttpRequest::indirect_client_addr, RequestFlags::intercepted, RequestFlags::interceptTproxy, HttpRequest::my_addr, HttpRequest::myportname, port, ConnStateData::port, SquidConfig::spoof_client_ip, RequestFlags::spoofClientIp, ACLFilledChecklist::syncAle(), and CbcPointer< Cbc >::valid().
Referenced by ConnStateData::buildFakeRequest(), and clientProcessRequest().
◆ maybeCacheable()
|
inherited |
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 538 of file HttpRequest.cc.
References Http::Message::cache_control, HttpRequest::flags, AnyP::Uri::getScheme(), HttpHdrCc::hasNoStore(), RequestFlags::hostVerified, RequestFlags::ignoreCc, RequestFlags::intercepted, RequestFlags::interceptTproxy, HttpRequest::method, AnyP::PROTO_HTTP, AnyP::PROTO_HTTPS, HttpRequestMethod::respMaybeCacheable(), and HttpRequest::url.
Referenced by clientInterpretRequestHeaders().
◆ MEMPROXY_CLASS()
|
privateinherited |
◆ multipartRangeRequest()
|
inherited |
Definition at line 434 of file HttpRequest.cc.
References HttpRequest::range, and HttpHdrRange::specs.
Referenced by clientReplyContext::buildReplyHeader(), HttpStateData::httpBuildRequestHeader(), and ClientHttpRequest::multipartRangeRequest().
◆ notes()
|
inherited |
- Returns
- existing non-empty transaction annotations, creates and returns empty annotations otherwise
Definition at line 752 of file HttpRequest.cc.
References HttpRequest::theNotes.
Referenced by Http::One::Server::buildHttpRequest(), ClientHttpRequest::initRequest(), ClientHttpRequest::logRequest(), AccessLogEntry::syncNotes(), and UpdateRequestNotes().
◆ pack()
|
inherited |
Definition at line 344 of file HttpRequest.cc.
References Packable::append(), Packable::appendf(), assert, Http::Message::header, Http::Message::http_ver, HttpRequestMethod::image(), AnyP::ProtocolVersion::major, HttpRequest::method, AnyP::ProtocolVersion::minor, HttpHeader::packInto(), AnyP::Uri::path(), SQUIDSBUFPH, SQUIDSBUFPRINT, and HttpRequest::url.
Referenced by Ftp::Server::handleRequest(), httpRequestPack(), and HttpRequest::swapOut().
◆ packFirstLineInto()
|
overrideprotectedvirtualinherited |
Implements Http::Message.
Definition at line 472 of file HttpRequest.cc.
References Packable::appendf(), HttpRequest::effectiveRequestUri(), Http::Message::http_ver, HttpRequestMethod::image(), AnyP::ProtocolVersion::major, HttpRequest::method, AnyP::ProtocolVersion::minor, AnyP::Uri::path(), SQUIDSBUFPH, SQUIDSBUFPRINT, and HttpRequest::url.
◆ packInto()
|
inherited |
Definition at line 253 of file Message.cc.
References Packable::append().
◆ parse()
|
inherited |
Definition at line 68 of file Message.cc.
References assert, Config, DBG_IMPORTANT, debugs, error(), headersEnd(), int, SquidConfig::maxReplyHeaderSize, Http::scHeaderTooLarge, Http::scInvalidHeader, and Http::scNone.
Referenced by Adaptation::Icap::Xaction::parseHttpMsg(), and HttpReply::parseTerminatedPrefix().
◆ 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 129 of file Message.cc.
References MemBuf::append(), MemBuf::buf, MemBuf::clean(), MemBuf::init(), MemBuf::size, and MemBuf::terminate().
◆ parseFirstLine()
|
overridevirtualinherited |
Implements Http::Message.
Definition at line 294 of file HttpRequest.cc.
References DBG_IMPORTANT, debugs, findTrailingHTTPVersion(), Http::Message::http_ver, HttpRequestMethod::HttpRequestMethodXXX(), AnyP::ProtocolVersion::major, HttpRequest::method, Http::METHOD_NONE, AnyP::ProtocolVersion::minor, AnyP::Uri::parse(), HttpRequest::url, w_space, and xisspace.
◆ parseHeader() [1/3]
|
inherited |
Parses request header from the buffer. Use it in contexts where the Parser object not available.
Definition at line 718 of file HttpRequest.cc.
References Http::Message::header, HttpHeader::parse(), and size.
◆ parseHeader() [2/3]
|
protectedinherited |
Definition at line 201 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]
|
inherited |
Parses request header using Parser. Use it in contexts where the Parser object is available.
Definition at line 711 of file HttpRequest.cc.
Referenced by Http::One::Server::buildHttpRequest(), htcpSpecifier::checkHit(), and htcpClrStore().
◆ 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 236 of file Message.cc.
References httpHeaderHasConnDir(), and Http::ProtocolVersion().
Referenced by clientReplyContext::buildReplyHeader(), clientSetKeepaliveFlag(), HttpReply::hdrCacheInit(), and HttpStateData::sendRequest().
◆ pinnedConnection()
|
inherited |
Definition at line 725 of file HttpRequest.cc.
References HttpRequest::clientConnectionManager, CbcPointer< Cbc >::get(), ConnStateData::pinned, ConnStateData::pinning, and CbcPointer< Cbc >::valid().
Referenced by ConnStateData::BorrowPinnedConnection(), clientReplyContext::buildReplyHeader(), clientCheckPinning(), FwdState::connectStart(), FwdState::reactToZeroSizeObject(), PeerSelector::selectPinned(), FwdState::usePinned(), and TunnelStateData::usePinned().
◆ prefixLen()
|
inherited |
Definition at line 369 of file HttpRequest.cc.
References Http::Message::header, HttpRequestMethod::image(), HttpHeader::len, SBuf::length(), HttpRequest::method, AnyP::Uri::path(), and HttpRequest::url.
Referenced by peerDigestFetchSetStats(), and clientReplyContext::traceReply().
◆ prepForDirect()
|
inherited |
Definition at line 456 of file HttpRequest.cc.
References RequestFlags::auth_no_keytab, debugs, HttpRequest::flags, HttpRequest::peer_domain, and HttpRequest::peer_login.
Referenced by TunnelStateData::connectDone(), FwdState::dispatch(), and switchToTunnel().
◆ prepForPeering()
|
inherited |
Definition at line 446 of file HttpRequest.cc.
References CachePeer::auth_no_keytab, RequestFlags::auth_no_keytab, debugs, CachePeer::domain, HttpRequest::flags, CachePeer::login, CachePeer::options, HttpRequest::peer_domain, and HttpRequest::peer_login.
Referenced by TunnelStateData::connectDone(), FwdState::dispatch(), and switchToTunnel().
◆ putCc()
|
inherited |
copies Cache-Control header to this message, overwriting existing Cache-Control header(s), if any
Definition at line 33 of file Message.cc.
Referenced by HttpReply::make304(), and CacheManager::PutCommonResponseHeaders().
◆ recordLookup()
|
inherited |
Definition at line 580 of file HttpRequest.cc.
References debugs, HttpRequest::dnsWait, and Dns::LookupDetails::wait.
Referenced by ClientRequestContext::hostHeaderIpVerify(), DestinationDomainLookup::LookupDone(), SourceDomainLookup::LookupDone(), and PeerSelector::noteLookup().
◆ reset()
|
overridevirtualinherited |
Implements Http::Message.
Definition at line 168 of file HttpRequest.cc.
References HttpRequest::clean(), and HttpRequest::init().
◆ sanityCheckStartLine()
|
overrideprotectedvirtualinherited |
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 268 of file HttpRequest.cc.
References debugs, HttpRequestMethod::HttpRequestMethodXXX(), Http::METHOD_NONE, and Http::scInvalidHeader.
Referenced by doSanityCheckStartLine().
◆ setContentLength()
|
inherited |
Definition at line 228 of file Message.cc.
References Http::CONTENT_LENGTH.
◆ storeId()
|
inherited |
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 733 of file HttpRequest.cc.
References debugs, HttpRequest::effectiveRequestUri(), String::size(), HttpRequest::store_id, and StringToSBuf().
Referenced by clientReplyContext::cacheHit(), ClientHttpRequest::doCallouts(), and storeKeyPublicByRequestMethod().
◆ swapOut()
|
inherited |
Definition at line 334 of file HttpRequest.cc.
References assert, StoreEntry::buffer(), StoreEntry::flush(), and HttpRequest::pack().
Referenced by clientReplyContext::traceReply().
Member Data Documentation
◆ adaptHistory_
|
mutableprivateinherited |
Definition at line 119 of file HttpRequest.h.
Referenced by HttpRequest::adaptHistory(), HttpRequest::adaptHistoryImport(), HttpRequest::clean(), HttpRequest::inheritProperties(), and HttpRequest::init().
◆ auth_user_request
|
inherited |
Definition at line 127 of file HttpRequest.h.
Referenced by Format::Format::assemble(), Auth::UserRequest::authenticate(), authTryGetUser(), ConnStateData::buildFakeRequest(), clientReplyContext::buildReplyHeader(), ClientHttpRequest::calloutsError(), HttpRequest::clean(), ClientRequestContext::clientAccessCheckDone(), clientProcessRequest(), ErrorState::compileLegacyCode(), constructHelperQuery(), DelayId::DelayClient(), Auth::UserRequest::helperRequestKeyExtras(), ClientRequestContext::hostHeaderVerifyFailed(), Log::Format::HttpdCombined(), Log::Format::HttpdCommon(), httpFixupAuthentication(), HttpRequest::inheritProperties(), HttpRequest::init(), Adaptation::Icap::ModXact::makeUsernameHeader(), peerUserHashSelectParent(), Log::Format::SquidIcap(), Log::Format::SquidNative(), ClientHttpRequest::sslBumpEstablish(), statClientRequests(), Auth::UserRequest::tryToAuthenticateAndSetAuthUser(), and Adaptation::Ecap::XactionRep::usernameValue().
◆ body_pipe
|
inherited |
Definition at line 97 of file Message.h.
Referenced by HttpRequest::bodyNibbled(), FwdState::checkRetriable(), HttpReply::clean(), HttpRequest::clean(), clientProcessRequest(), ClientRequestContext::clientRedirectDone(), Adaptation::Ecap::MessageRep::clone(), HttpReply::clone(), HttpRequest::clone(), FwdState::doneWithRetries(), Adaptation::Icap::ModXact::estimateVirginBody(), Adaptation::Icap::ModXact::finalizeLogInfo(), ClientHttpRequest::handleAdaptationFailure(), Client::handleAdaptedHeader(), HttpRequest::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 76 of file Message.h.
Referenced by HttpRequest::clean(), clientInterpretRequestHeaders(), HttpStateData::haveParsedReplyHeaders(), HttpReply::hdrCacheClean(), HttpReply::hdrExpirationTime(), MimeIcon::load(), HttpReply::make304(), HttpRequest::maybeCacheable(), ClientHttpRequest::onlyIfCached(), refreshCheck(), and HttpStateData::reusableReply().
◆ client_addr
|
inherited |
Definition at line 149 of file HttpRequest.h.
Referenced by ErrorState::ErrorState(), Format::Format::assemble(), ClientRequestContext::clientAccessCheck(), clientBeginRequest(), Adaptation::Ecap::XactionRep::clientIpValue(), DelayId::DelayClient(), ClientHttpRequest::doCallouts(), Adaptation::Icap::ModXact::finalizeLogInfo(), getOutgoingAddress(), HttpRequest::getRangeOffsetLimit(), HttpStateData::handleMoreRequestBodyAvailable(), HttpStateData::httpBuildRequestHeader(), HttpRequest::inheritProperties(), HttpRequest::init(), Adaptation::Icap::ModXact::makeRequestHeaders(), HttpRequest::manager(), PeerSelector::noteIp(), peerSourceHashSelectParent(), HttpStateData::processReplyBody(), ACLFilledChecklist::setRequest(), FwdState::Start(), and tunnelStart().
◆ clientConnectionManager
|
inherited |
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 Ssl::PeekingPeerConnector::PeekingPeerConnector(), Format::Format::assemble(), clientCheckPinning(), FwdState::completed(), copyResultsFromEntry(), FwdState::dispatch(), HttpStateData::handle1xx(), HttpRequest::inheritProperties(), HttpRequest::manager(), HttpRequest::pinnedConnection(), HttpStateData::proceedAfter1xx(), clientReplyContext::processExpired(), clientReplyContext::processMiss(), HttpStateData::processReplyBody(), PeerSelector::resolveSelected(), ACLFilledChecklist::setRequest(), FwdState::successfullyConnectedToPeer(), and switchToTunnel().
◆ content_length
|
inherited |
Definition at line 83 of file Message.h.
Referenced by HttpReply::bodySize(), Http::Stream::buildRangeHeader(), HttpHdrRange::canonize(), HttpRequest::checkEntityFraming(), StoreEntry::checkTooBig(), StoreEntry::checkTooSmall(), clientBeginRequest(), clientPackRangeHdr(), clientProcessRequest(), HttpReply::expectingBody(), HttpRequest::expectingBody(), Downloader::handleReply(), HttpReply::hdrCacheInit(), HttpStateData::persistentConnStatus(), HttpReply::redirect(), refreshIsCachable(), HttpStateData::sendRequest(), HttpReply::setHeaders(), storeLog(), clientReplyContext::storeNotOKTransferDone(), HttpStateData::truncateVirginBody(), and HttpReply::validatorsMatch().
◆ dnsWait
|
inherited |
Definition at line 159 of file HttpRequest.h.
Referenced by Format::Format::assemble(), HttpRequest::inheritProperties(), HttpRequest::init(), prepareLogWithRequestDetails(), and HttpRequest::recordLookup().
◆ downloader
|
inherited |
Definition at line 235 of file HttpRequest.h.
Referenced by HttpRequest::inheritProperties().
◆ error
|
inherited |
Definition at line 161 of file HttpRequest.h.
Referenced by ClientHttpRequest::~ClientHttpRequest(), ErrorState::BuildHttpReply(), HttpRequest::clearError(), HttpRequest::clone(), HttpRequest::detailError(), AccessLogEntry::error(), HttpRequest::inheritProperties(), HttpRequest::init(), prepareLogWithRequestDetails(), ConnStateData::serveDelayedError(), ClientHttpRequest::updateCounters(), AccessLogEntry::updateError(), ClientHttpRequest::updateError(), and Ftp::Server::writeErrorReply().
◆ etag
|
inherited |
Definition at line 191 of file HttpRequest.h.
Referenced by HttpRequest::clean(), HttpRequest::clone(), HttpStateData::httpBuildRequestHeader(), clientReplyContext::processExpired(), clientReplyContext::restoreState(), and clientReplyContext::saveState().
◆ extacl_log
|
inherited |
Definition at line 182 of file HttpRequest.h.
Referenced by Format::Format::assemble(), HttpRequest::clean(), HttpRequest::clone(), copyResultsFromEntry(), and HttpRequest::init().
◆ extacl_message
|
inherited |
Definition at line 184 of file HttpRequest.h.
Referenced by HttpRequest::clean(), HttpRequest::clone(), ErrorState::compileLegacyCode(), copyResultsFromEntry(), and HttpRequest::init().
◆ extacl_passwd
|
inherited |
Definition at line 180 of file HttpRequest.h.
Referenced by HttpRequest::clean(), copyResultsFromEntry(), httpFixupAuthentication(), HttpRequest::inheritProperties(), HttpRequest::init(), and Adaptation::Icap::ModXact::makeRequestHeaders().
◆ extacl_user
|
inherited |
Definition at line 178 of file HttpRequest.h.
Referenced by Format::Format::assemble(), HttpRequest::clean(), copyResultsFromEntry(), AccessLogEntry::getExtUser(), httpFixupAuthentication(), HttpRequest::inheritProperties(), HttpRequest::init(), Adaptation::Icap::ModXact::makeRequestHeaders(), Adaptation::Icap::ModXact::makeUsernameHeader(), ACLExtUser::match(), prepareLogWithRequestDetails(), statClientRequests(), and Adaptation::Ecap::XactionRep::usernameValue().
◆ flags
|
inherited |
Definition at line 141 of file HttpRequest.h.
Referenced by HttpStateData::HttpStateData(), Ssl::ServerBump::ServerBump(), StoreEntry::adjustVary(), clientReplyContext::blockedHit(), clientReplyContext::buildReplyHeader(), HttpStateData::buildRequestPrefix(), clientReplyContext::cacheHit(), ClientHttpRequest::checkForInternalAccess(), ClientRequestContext::checkNoCacheDone(), CheckQuickAbortIsReasonable(), FwdState::checkRetry(), clientReplyContext::checkTransferDone(), ClientRequestContext::clientAccessCheck(), ClientRequestContext::clientAccessCheckDone(), clientBeginRequest(), clientCheckPinning(), TunnelStateData::clientExpectsConnectResponse(), clientFollowXForwardedForCheck(), clientHierarchical(), clientInterpretRequestHeaders(), clientProcessRequest(), clientProcessRequestFinished(), clientSetKeepaliveFlag(), FwdState::completed(), HttpRequest::conditional(), HttpStateData::continueAfterParsingHeader(), copyOneHeaderFromClientsideRequestToUpstreamRequest(), HttpStateData::decideIfWeDoRanges(), FwdState::dispatch(), ClientHttpRequest::doCallouts(), errorAppendEntry(), FindGoodListeningPortAddress(), getOutgoingAddress(), ClientHttpRequest::handleAdaptedHeader(), clientReplyContext::handleIMSReply(), Http::One::Server::handleReply(), StoreEntry::hasIfNoneMatchEtag(), ClientRequestContext::hostHeaderIpVerify(), ClientRequestContext::hostHeaderVerify(), ClientRequestContext::hostHeaderVerifyFailed(), HttpStateData::httpBuildRequestHeader(), httpFixupAuthentication(), httpMaybeRemovePublic(), clientReplyContext::identifyFoundObject(), clientReplyContext::identifyStoreObject(), HttpRequest::inheritProperties(), HttpRequest::init(), ConnStateData::initiateTunneledRequest(), internalStart(), HappyConnOpener::makeError(), HttpRequest::manager(), ACLDestinationIP::match(), ACLProxyAuth::matchProxyAuth(), HttpRequest::maybeCacheable(), neighborsDigestSelect(), netdbExchangeStart(), ErrorState::NewForwarding(), FwdState::noteConnection(), PeerSelector::noteIp(), CacheManager::ParseHeaders(), peerAllowedToUse(), peerDigestRequest(), peerSelectIcpPing(), HttpStateData::peerSupportsConnectionPinning(), peerWouldBePinged(), ConnStateData::pinConnection(), FwdState::pinnedCanRetry(), HttpRequest::prepForDirect(), HttpRequest::prepForPeering(), clientReplyContext::processConditional(), clientReplyContext::processExpired(), clientReplyContext::processMiss(), HttpStateData::processReplyBody(), HttpStateData::processReplyHeader(), ClientHttpRequest::processRequest(), HttpStateData::processSurrogateControl(), ConnStateData::quitAfterError(), FwdState::reforward(), refreshCheck(), refreshCheckHTTP(), clientReplyContext::replyStatus(), ClientHttpRequest::resetRequestXXX(), 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
|
inherited |
Definition at line 194 of file HttpRequest.h.
Referenced by HttpStateData::handle1xx(), Ftp::Server::handleUploadRequest(), HttpRequest::inheritProperties(), HttpRequest::init(), and Http::One::Server::processParsedRequest().
◆ hdr_sz
|
inherited |
Definition at line 81 of file Message.h.
Referenced by StoreEntry::append(), HttpReply::clone(), HttpRequest::clone(), StoreEntry::contentLen(), store_client::doCopy(), MemObject::expectedReplySize(), Adaptation::Icap::ModXact::finalizeLogInfo(), Http::Tunneler::handleResponse(), MemObject::markEndOfReplyHeaders(), store_client::nextHttpReadOffset(), Adaptation::Icap::Xaction::parseHttpMsg(), HttpReply::parseTerminatedPrefix(), clientReplyContext::processReplyAccessResult(), MemObject::readAheadPolicyCanRead(), store_client::sendingHttpHeaders(), store_client::skipHttpHeadersFromDisk(), clientReplyContext::storeOKTransferDone(), MemStore::updateHeadersOrThrow(), and StoreEntry::write().
◆ header
|
inherited |
Definition at line 74 of file Message.h.
Referenced by StoreEntry::adjustVary(), Ftp::Gateway::appendSuccessHeader(), Format::Format::assemble(), assembleVaryKey(), Auth::UserRequest::authenticate(), HttpStateData::blockSwitchingProtocols(), ConnStateData::buildFakeRequest(), ErrorState::BuildHttpReply(), Http::One::Server::buildHttpRequest(), Http::Stream::buildRangeHeader(), clientReplyContext::buildReplyHeader(), ESIVarState::buildVary(), HttpRequest::canHandle1xx(), HttpRequest::checkEntityFraming(), HttpReply::clean(), HttpRequest::clean(), ClientRequestContext::clientAccessCheck(), clientBeginRequest(), clientCheckPinning(), clientGetMoreData(), clientIfRangeMatch(), clientInterpretRequestHeaders(), clientPackRangeHdr(), clientProcessRequest(), Adaptation::Ecap::MessageRep::clone(), HttpReply::clone(), HttpRequest::clone(), ErrorState::compileLegacyCode(), HttpRequest::conditional(), Adaptation::Icap::Options::configure(), Ftp::Relay::createHttpReply(), ErrorState::Dump(), Adaptation::Icap::ModXact::encapsulateHead(), ESIContextNew(), Adaptation::Icap::ModXact::estimateVirginBody(), HttpReply::expectingBody(), HttpRequest::expectingBody(), Ssl::ErrorDetailsManager::findDetail(), HttpStateData::forwardUpgrade(), Ftp::Gateway::ftpAuthRequired(), ftpSendStor(), Ftp::Server::handleFeatReply(), Ftp::Server::handleRequest(), StoreEntry::hasIfMatchEtag(), StoreEntry::hasIfNoneMatchEtag(), StoreEntry::hasOneOfEtags(), HttpStateData::haveParsedReplyHeaders(), HttpReply::hdrCacheInit(), HttpRequest::hdrCacheInit(), HttpReply::hdrExpirationTime(), ClientRequestContext::hostHeaderVerify(), ClientRequestContext::hostHeaderVerifyFailed(), HttpStateData::httpBuildRequestHeader(), Log::Format::HttpdCombined(), httpMakeVaryMark(), Ftp::HttpReplyWrapper(), Auth::SchemeConfig::isCP1251EncodingAllowed(), MimeIcon::load(), TemplateFile::loadFor(), Ftp::Gateway::loginFailed(), HttpReply::make304(), Adaptation::Icap::ModXact::makeRequestHeaders(), HttpRequest::pack(), HttpReply::packHeadersUsingFastPacker(), HttpRequest::parseHeader(), CacheManager::ParseHeaders(), Adaptation::Icap::OptXact::parseResponse(), peerDigestRequest(), HttpReply::prefixLen(), HttpRequest::prefixLen(), prepareLogWithRequestDetails(), Adaptation::Icap::ModXact::prepEchoing(), Ftp::PrintReply(), clientReplyContext::processConditional(), clientReplyContext::processExpired(), Http::One::Server::processParsedRequest(), HttpStateData::processReplyHeader(), purgeEntriesByHeader(), CacheManager::PutCommonResponseHeaders(), HttpReply::recreateOnNotModified(), HttpReply::redirect(), HttpReply::removeIrrelevantContentLength(), HttpStateData::reusableReply(), Ftp::Server::setDataCommand(), HttpReply::setHeaders(), UrnState::setUriResFromRequest(), Log::Format::SquidReferer(), Log::Format::SquidUserAgent(), CacheManager::start(), HttpStateData::statusIfComplete(), urlCheckRequest(), 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
|
inherited |
Definition at line 157 of file HttpRequest.h.
Referenced by Client::adjustBodyBytesRead(), TunnelStateData::checkRetry(), HttpRequest::clone(), ErrorState::compileLegacyCode(), StoreEntry::complete(), FwdState::completed(), FwdState::connectStart(), ErrorState::Dump(), PeerSelector::handlePath(), neighborsDigestSelect(), peerNoteDigestLookup(), peerSelect(), prepareLogWithRequestDetails(), 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 72 of file Message.h.
Referenced by netdbExchangeState::netdbExchangeState(), Format::Format::assemble(), ErrorState::BuildHttpReply(), clientReplyContext::buildReplyHeader(), HttpRequest::canHandle1xx(), HttpRequest::checkEntityFraming(), clientBeginRequest(), clientProcessRequest(), ClientRequestContext::clientRedirectDone(), clientSetKeepaliveFlag(), HttpReply::clone(), HttpRequest::clone(), ErrorState::compileLegacyCode(), ErrorState::Dump(), Adaptation::Icap::ModXact::encapsulateHead(), HttpStateData::forwardUpgrade(), HttpReply::hdrCacheInit(), htcpClear(), htcpQuery(), HttpStateData::httpBuildRequestHeader(), HttpRequest::pack(), HttpRequest::packFirstLineInto(), HttpRequest::parseFirstLine(), prepareLogWithRequestDetails(), switchToTunnel(), and tunnelStart().
◆ icapHistory_
|
mutableprivateinherited |
Definition at line 122 of file HttpRequest.h.
Referenced by HttpRequest::clean(), HttpRequest::icapHistory(), HttpRequest::inheritProperties(), and HttpRequest::init().
◆ ims
|
inherited |
Definition at line 145 of file HttpRequest.h.
Referenced by clientInterpretRequestHeaders(), HttpRequest::clone(), clientReplyContext::handleIMSReply(), HttpRequest::init(), and clientReplyContext::processConditional().
◆ imslen
|
inherited |
Definition at line 147 of file HttpRequest.h.
Referenced by clientInterpretRequestHeaders(), HttpRequest::clone(), clientReplyContext::handleIMSReply(), HttpRequest::init(), and clientReplyContext::processConditional().
◆ indirect_client_addr
|
inherited |
Definition at line 152 of file HttpRequest.h.
Referenced by ClientRequestContext::clientAccessCheck(), clientBeginRequest(), clientFollowXForwardedForCheck(), Adaptation::Ecap::XactionRep::clientIpValue(), DelayId::DelayClient(), AccessLogEntry::getLogClientIp(), getOutgoingAddress(), HttpRequest::inheritProperties(), HttpRequest::init(), Adaptation::Icap::ModXact::makeRequestHeaders(), HttpRequest::manager(), and ACLFilledChecklist::setRequest().
◆ lastmod
|
inherited |
Definition at line 167 of file HttpRequest.h.
Referenced by HttpRequest::clone(), HttpStateData::httpBuildRequestHeader(), HttpRequest::init(), clientReplyContext::processExpired(), clientReplyContext::restoreState(), and clientReplyContext::saveState().
◆ masterXaction
|
inherited |
Definition at line 238 of file HttpRequest.h.
Referenced by Format::Format::assemble(), HttpRequest::clone(), AccessLogEntry::codeContextGist(), htcpSpecifier::codeContextGist(), AccessLogEntry::detailCodeContext(), htcpSpecifier::detailCodeContext(), FindGoodListeningPortAddress(), Acl::TransactionInitiator::match(), UrnState::setUriResFromRequest(), and Adaptation::Ecap::XactionRep::updateSources().
◆ method
|
inherited |
Definition at line 114 of file HttpRequest.h.
Referenced by Ftp::Gateway::Gateway(), Ssl::ServerBump::ServerBump(), StoreEntry::adjustVary(), asnCacheStart(), Format::Format::assemble(), ConnStateData::buildFakeRequest(), ErrorState::BuildHttpReply(), clientReplyContext::buildReplyHeader(), HttpStateData::buildRequestPrefix(), clientReplyContext::cacheHit(), HttpRequest::canonicalCleanUrl(), HttpRequest::checkEntityFraming(), FwdState::checkRetriable(), ClientRequestContext::clientAccessCheckDone(), clientGetMoreData(), clientHierarchical(), clientInterpretRequestHeaders(), clientProcessRequest(), ClientRequestContext::clientRedirectDone(), clientSetKeepaliveFlag(), HttpRequest::clone(), ErrorState::compileLegacyCode(), copyOneHeaderFromClientsideRequestToUpstreamRequest(), FwdState::dispatch(), ClientHttpRequest::doCallouts(), clientReplyContext::doGetMoreData(), ErrorState::Dump(), HttpRequest::effectiveRequestUri(), Adaptation::Icap::ModXact::encapsulateHead(), HttpReply::expectedBodyTooLarge(), HttpRequest::FromUrl(), HttpRequest::FromUrlXXX(), ftpSendPassive(), ClientHttpRequest::gotEnough(), ClientHttpRequest::handleAdaptedHeader(), Ftp::Server::handleRequest(), StoreEntry::hasIfNoneMatchEtag(), ClientRequestContext::hostHeaderVerify(), ClientRequestContext::hostHeaderVerifyFailed(), htcpClear(), htcpQuery(), httpStart(), HttpRequest::init(), HttpRequest::initHTTP(), HttpStateData::keepaliveAccounting(), HttpRequest::maybeCacheable(), Client::maybePurgeOthers(), FwdState::noteConnection(), HttpRequest::pack(), HttpRequest::packFirstLineInto(), HttpRequest::parseFirstLine(), CacheManager::ParseHeaders(), peerAllowedToUse(), peerDigestRequest(), peerSelect(), HttpStateData::persistentConnStatus(), HttpRequest::prefixLen(), prepareLogWithRequestDetails(), 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(), ConnStateData::serveDelayedError(), Ftp::Server::setReply(), clientReplyContext::setReplyToError(), clientReplyContext::setReplyToReply(), ClientRequestContext::sslBumpAccessCheck(), Client::startAdaptation(), clientReplyContext::startError(), HttpStateData::statusIfComplete(), storeGetPublicByRequest(), storeKeyPublicByRequest(), switchToTunnel(), TestHttpRequest::testCreateFromUrl(), TestHttpRequest::testIPv6HostColonBug(), clientReplyContext::traceReply(), HttpStateData::truncateVirginBody(), tunnelStart(), urlCanonicalFakeHttps(), urlCheckRequest(), urnHandleReply(), and HttpStateData::writeReplyBody().
◆ my_addr
|
inherited |
Definition at line 155 of file HttpRequest.h.
Referenced by clientBeginRequest(), ClientHttpRequest::doCallouts(), HttpRequest::getRangeOffsetLimit(), HttpRequest::inheritProperties(), HttpRequest::init(), HttpRequest::manager(), ACLFilledChecklist::setRequest(), and tunnelStart().
◆ myportname
|
inherited |
Definition at line 174 of file HttpRequest.h.
Referenced by HttpRequest::clean(), HttpRequest::inheritProperties(), HttpRequest::init(), HttpRequest::manager(), and ConnStateData::postHttpsAccept().
◆ peer_domain
|
inherited |
Definition at line 172 of file HttpRequest.h.
Referenced by copyOneHeaderFromClientsideRequestToUpstreamRequest(), HttpStateData::httpBuildRequestHeader(), HttpRequest::init(), HttpRequest::prepForDirect(), and HttpRequest::prepForPeering().
◆ peer_host
|
inherited |
Definition at line 165 of file HttpRequest.h.
Referenced by TunnelStateData::connectDone(), httpFixupAuthentication(), HttpRequest::init(), HttpStateData::sendRequest(), and switchToTunnel().
◆ peer_login
|
inherited |
Definition at line 163 of file HttpRequest.h.
Referenced by clientReplyContext::buildReplyHeader(), copyOneHeaderFromClientsideRequestToUpstreamRequest(), httpFixupAuthentication(), HttpRequest::init(), HttpRequest::prepForDirect(), and HttpRequest::prepForPeering().
◆ pstate
|
inherited |
Definition at line 94 of file Message.h.
Referenced by HttpReply::clone(), HttpRequest::clone(), MemStore::copyFromShm(), store_client::handleBodyFromDisk(), HttpReply::init(), HttpRequest::init(), HttpReply::parseTerminatedPrefix(), and clientReplyContext::storeNotOKTransferDone().
◆ range
|
inherited |
Definition at line 143 of file HttpRequest.h.
Referenced by Http::Stream::buildRangeHeader(), CheckQuickAbortIsReasonable(), HttpRequest::clean(), clientInterpretRequestHeaders(), HttpStateData::decideIfWeDoRanges(), HttpRequest::hdrCacheInit(), HttpRequest::ignoreRange(), HttpRequest::init(), ClientHttpRequest::mRangeCLen(), HttpRequest::multipartRangeRequest(), ClientHttpRequest::prepPartialResponseGeneration(), and clientReplyContext::processReplyAccessResult().
◆ rangeOffsetLimit
|
mutableprivateinherited |
Definition at line 263 of file HttpRequest.h.
Referenced by HttpRequest::getRangeOffsetLimit(), and HttpRequest::init().
◆ sources
|
inherited |
Definition at line 99 of file Message.h.
Referenced by Ftp::Gateway::appendSuccessHeader(), ConnStateData::buildFakeRequest(), clientProcessRequest(), Ftp::Relay::forwardReply(), Http::Tunneler::handleResponse(), HttpReply::inheritProperties(), HttpRequest::inheritProperties(), Acl::ConnectionsEncrypted::match(), HttpStateData::processReplyHeader(), WhoisState::setReplyToOK(), Ftp::Relay::startDataDownload(), and Adaptation::Ecap::XactionRep::updateSources().
◆ store_id
|
inherited |
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 HttpRequest::storeId().
◆ tag
|
inherited |
Definition at line 176 of file HttpRequest.h.
Referenced by Format::Format::assemble(), HttpRequest::clean(), HttpRequest::clone(), copyResultsFromEntry(), DelayId::DelayClient(), and HttpRequest::init().
◆ theNotes
|
privateinherited |
annotations added by the note directive and helpers and(or) by annotate_transaction/annotate_client ACLs.
Definition at line 267 of file HttpRequest.h.
Referenced by HttpRequest::clean(), HttpRequest::hasNotes(), HttpRequest::inheritProperties(), and HttpRequest::notes().
◆ url
|
inherited |
Definition at line 115 of file HttpRequest.h.
Referenced by Ssl::ServerBump::ServerBump(), Http::Tunneler::Tunneler(), asnCacheStart(), Format::Format::assemble(), ConnStateData::borrowPinnedConnection(), ConnStateData::buildFakeRequest(), Http::One::Server::buildHttpRequest(), HttpStateData::buildRequestPrefix(), clientReplyContext::cacheHit(), HttpRequest::canonicalCleanUrl(), carpSelectParent(), HttpStateData::checkDateSkew(), DestinationIPLookup::checkForAsync(), ClientHttpRequest::checkForInternalAccess(), PeerSelector::checkNetdbDirect(), HttpRequest::clean(), clientHierarchical(), clientInterpretRequestHeaders(), ClientRequestContext::clientRedirectDone(), HttpRequest::clone(), ErrorState::compileLegacyCode(), TunnelStateData::connectDone(), FwdState::connectStart(), HttpStateData::continueAfterParsingHeader(), copyOneHeaderFromClientsideRequestToUpstreamRequest(), FwdState::dispatch(), doV2Query(), ErrorState::Dump(), HttpRequest::effectiveRequestUri(), Adaptation::Icap::ModXact::encapsulateHead(), findUsableParentAtHostname(), HttpRequest::FromUrl(), HttpRequest::FromUrlXXX(), ftpFail(), ftpReadType(), ftpSendType(), ftpSendUser(), ftpTrySlashHack(), getDefaultParent(), getFirstUpParent(), TunnelStateData::getHost(), getRoundRobinParent(), getWeightedRoundRobinParent(), PeerSelector::handleHtcpParentMiss(), PeerSelector::handleIcpParentMiss(), ClientRequestContext::hostHeaderVerify(), htcpTstReply(), HttpStateData::httpBuildRequestHeader(), clientReplyContext::identifyFoundObject(), HttpRequest::init(), HttpRequest::initHTTP(), ConnStateData::initiateTunneledRequest(), internalStart(), ACLDestinationIP::match(), HttpRequest::maybeCacheable(), neighborsHtcpReply(), neighborsUdpAck(), neighborsUdpPing(), netdbClosestParent(), netdbExchangeStart(), FwdState::noteConnection(), TunnelStateData::noteConnection(), PeerSelector::noteIp(), PeerSelector::noteIps(), operator<<(), HttpRequest::pack(), HttpRequest::packFirstLineInto(), HttpRequest::parseFirstLine(), peerAllowedToUse(), peerDigestRequest(), ConnStateData::pinConnection(), ConnStateData::postHttpsAccept(), HttpRequest::prefixLen(), HttpStateData::processReplyBody(), HttpStateData::processReplyHeader(), purgeEntriesByHeader(), clientReplyContext::purgeRequest(), PeerSelector::resolveSelected(), FwdState::secureConnectionToPeerIfNeeded(), PeerSelector::selectAllParents(), PeerSelector::selectMore(), PeerSelector::selectSomeDirect(), PeerSelector::selectSomeNeighbor(), PeerSelector::selectSomeParent(), HttpStateData::sendRequest(), ConnStateData::serveDelayedError(), UrnState::setUriResFromRequest(), PeerPoolMgr::start(), CacheManager::start(), FwdState::Start(), TunnelStateData::startConnecting(), FwdState::successfullyConnectedToPeer(), TestHttpRequest::testCreateFromUrl(), TestHttpRequest::testIPv6HostColonBug(), urlCanonicalFakeHttps(), urlCheckRequest(), Ftp::UrlWith2f(), FwdState::usePinned(), TunnelStateData::usePinned(), Adaptation::Service::wants(), and whoisStart().
◆ vary_headers
|
inherited |
Definition at line 170 of file HttpRequest.h.
Referenced by StoreEntry::adjustVary(), HttpRequest::clean(), HttpRequest::clone(), HttpRequest::init(), clientReplyContext::processExpired(), clientReplyContext::purgeDoPurge(), storeKeyPublicByRequestMethod(), and varyEvaluateMatch().
◆ x_forwarded_for_iterator
|
inherited |
Definition at line 187 of file HttpRequest.h.
Referenced by ClientRequestContext::clientAccessCheck(), and clientFollowXForwardedForCheck().
The documentation for this class was generated from the following file:
- src/tests/testHttpRequest.cc