#include <HttpRequest.h>

Inheritance diagram for HttpRequest:
Collaboration diagram for HttpRequest:

Public Types

typedef RefCount< HttpRequestPointer
 
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 HttpRequestclone () 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 (err_type aType, int aDetail)
 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 SBufeffectiveRequestUri () 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
 
ConnStateDatapinnedConnection ()
 
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 HttpRequestFromUrl (const SBuf &url, const MasterXaction::Pointer &, const HttpRequestMethod &method=Http::METHOD_GET)
 
static HttpRequestFromUrlXXX (const char *url, const MasterXaction::Pointer &, const HttpRequestMethod &method=Http::METHOD_GET)
 

Public Attributes

HttpRequestMethod method
 
AnyP::Uri url
 the request URI More...
 
Auth::UserRequest::Pointer auth_user_request
 
String store_id
 
RequestFlags flags
 
HttpHdrRangerange
 
time_t ims
 
int imslen
 
Ip::Address client_addr
 
Ip::Address indirect_client_addr
 
Ip::Address my_addr
 
HierarchyLogEntry hier
 
int dnsWait
 sum of DNS lookup delays in milliseconds, for dt More...
 
err_type errType
 
int errDetail
 errType-specific detail about the transaction error More...
 
char * peer_login
 
char * peer_host
 
time_t lastmod
 
SBuf vary_headers
 The variant second-stage cache key. Generated from Vary header pattern for this request. More...
 
char * peer_domain
 
String myportname
 
String tag
 
String extacl_user
 
String extacl_passwd
 
String extacl_log
 
String extacl_message
 
String x_forwarded_for_iterator
 
String etag
 A strong etag of the cached entry. Used for refreshing that entry. More...
 
bool forcedBodyContinuation
 whether we have responded with HTTP 100 or FTP 150 already More...
 
CbcPointer< ConnStateDataclientConnectionManager
 
CbcPointer< Downloaderdownloader
 The Downloader object which initiated the HTTP request if any. More...
 
MasterXaction::Pointer masterXaction
 the master transaction this request belongs to. Never nil. More...
 
AnyP::ProtocolVersion http_ver
 
HttpHeader header
 
HttpHdrCccache_control = nullptr
 
int hdr_sz = 0
 
int64_t content_length = 0
 
ParseState pstate = Http::Message::psReadyToParseStartLine
 the current parsing state More...
 
BodyPipe::Pointer body_pipe
 optional pipeline to receive message body More...
 
uint32_t sources = 0
 The message sources. More...
 

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::AllocatorProxyPool ()
 

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

Definition at line 50 of file HttpRequest.h.

Member Enumeration Documentation

◆ ParseState

enum Http::Message::ParseState
inherited
Enumerator
psReadyToParseStartLine 
psReadyToParseHeaders 
psParsed 
psError 

Definition at line 87 of file Message.h.

◆ Sources

enum Http::Message::Sources
inherited
Enumerator
srcUnknown 
srcHttps 

https_port or bumped http_port tunnel; HTTPS server

srcFtps 

ftps_port or SFTP server; currently unused

srcIcaps 

Secure ICAP service.

srcEcaps 

eCAP service that is considered secure; currently unused

srcHttp 

http_port or HTTP server

srcFtp 

ftp_port or FTP server

srcIcap 

traditional ICAP service without encryption

srcEcap 

eCAP service that uses insecure libraries/daemons

srcGopher 

Gopher server.

srcWhois 

Whois server.

srcUnsafe 

Unsafe sources mask.

srcSafe 

Safe sources mask.

Definition at line 29 of file Message.h.

Constructor & Destructor Documentation

◆ HttpRequest() [1/2]

HttpRequest::HttpRequest ( const MasterXaction::Pointer mx)

Definition at line 43 of file HttpRequest.cc.

References assert, and init().

Referenced by clone(), and FromUrl().

◆ 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.

References clean(), debugs, and HERE().

Member Function Documentation

◆ adaptHistory()

◆ adaptHistoryImport()

void HttpRequest::adaptHistoryImport ( const HttpRequest them)

Definition at line 424 of file HttpRequest.cc.

References adaptHistory_, and Must.

◆ adaptLogHistory()

◆ bodyNibbled()

bool HttpRequest::bodyNibbled ( ) const

◆ canHandle1xx()

bool HttpRequest::canHandle1xx ( ) const

◆ 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 775 of file HttpRequest.cc.

References effectiveRequestUri(), AnyP::Uri::getScheme(), method, url, and urlCanonicalCleanWithoutRequest().

Referenced by ClientHttpRequest::setLogUriToRequestUri(), and urlCanonicalFakeHttps().

◆ clean()

◆ clearError()

void HttpRequest::clearError ( )

◆ clone()

◆ conditional()

bool HttpRequest::conditional ( ) const

◆ configureContentLengthInterpreter()

virtual void HttpRequest::configureContentLengthInterpreter ( Http::ContentLengthInterpreter )
inlinevirtual

Implements Http::Message.

Definition at line 250 of file HttpRequest.h.

References parseHeader(), and size.

◆ detailError()

◆ effectiveRequestUri()

◆ expectingBody()

bool HttpRequest::expectingBody ( const HttpRequestMethod unused,
int64_t &  theSize 
) const
virtual

◆ firstLineBuf()

void Http::Message::firstLineBuf ( MemBuf mb)
inherited

Definition at line 295 of file Message.cc.

References Http::Message::packFirstLineInto().

◆ FromUrl()

◆ FromUrlXXX()

◆ getRangeOffsetLimit()

◆ hasNotes()

bool HttpRequest::hasNotes ( ) const
inline

Definition at line 248 of file HttpRequest.h.

References NotePairs::empty(), and theNotes.

Referenced by Http::One::Server::buildHttpRequest().

◆ hdrCacheInit()

void HttpRequest::hdrCacheInit ( )
protectedvirtual

Reimplemented from Http::Message.

Definition at line 382 of file HttpRequest.cc.

References assert, HttpHeader::getRange(), Http::Message::hdrCacheInit(), Http::Message::header, and range.

Referenced by clone().

◆ httpMsgParseError()

int Http::Message::httpMsgParseError ( )
virtualinherited

Reimplemented in HttpReply.

Definition at line 246 of file Message.cc.

References Http::Message::reset().

Referenced by HttpReply::httpMsgParseError(), and Http::Message::httpMsgParseStep().

◆ httpMsgParseStep()

◆ httpRequestPack()

static void HttpRequest::httpRequestPack ( void *  obj,
Packable p 
)
static

◆ icapHistory()

◆ ignoreRange()

◆ inheritProperties()

◆ init()

◆ 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()

◆ maybeCacheable()

bool HttpRequest::maybeCacheable ( )

Whether response to this request is potentially cachable

Return values
falseNot cacheable.
truePossibly 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 556 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

◆ notes()

NotePairs::Pointer HttpRequest::notes ( )
Returns
existing non-empty transaction annotations, creates and returns empty annotations otherwise

Definition at line 713 of file HttpRequest.cc.

References theNotes.

Referenced by Http::One::Server::buildHttpRequest(), ClientHttpRequest::initRequest(), AccessLogEntry::syncNotes(), and UpdateRequestNotes().

◆ operator delete()

void HttpRequest::operator delete ( void *  address)
inline

Definition at line 50 of file HttpRequest.h.

◆ operator new()

void* HttpRequest::operator new ( size_t  byteCount)
inline

Definition at line 50 of file HttpRequest.h.

◆ pack()

◆ packFirstLineInto()

void HttpRequest::packFirstLineInto ( Packable p,
bool  full_uri 
) const
protectedvirtual

◆ packInto()

void Http::Message::packInto ( Packable p,
bool  full_uri 
) const
inherited

◆ parse()

◆ parseCharBuf()

bool Http::Message::parseCharBuf ( const char *  buf,
ssize_t  end 
)
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, MemBuf::clean(), Http::Message::httpMsgParseStep(), MemBuf::init(), Http::Message::reset(), MemBuf::size, and MemBuf::terminate().

Referenced by Adaptation::Icap::ModXact::makeRequestHeaders(), store_client::readBody(), and urnHandleReply().

◆ parseFirstLine()

bool HttpRequest::parseFirstLine ( const char *  start,
const char *  end 
)
virtual

◆ parseHeader() [1/3]

◆ parseHeader() [2/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 672 of file HttpRequest.cc.

Referenced by Http::One::Server::buildHttpRequest(), configureContentLengthInterpreter(), and htcpClrStore().

◆ parseHeader() [3/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 679 of file HttpRequest.cc.

References Http::Message::header, and HttpHeader::parse().

◆ persistent()

bool Http::Message::persistent ( ) const
inherited
Return values
truethe message sender asks to keep the connection open.
falsethe 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 Http::Message::header, Http::Message::http_ver, httpHeaderHasConnDir(), and Http::ProtocolVersion().

Referenced by clientReplyContext::buildReplyHeader(), clientSetKeepaliveFlag(), HttpReply::hdrCacheInit(), and HttpStateData::sendRequest().

◆ pinnedConnection()

◆ Pool()

static Mem::AllocatorProxy& HttpRequest::Pool ( )
inlinestaticprivate

Definition at line 50 of file HttpRequest.h.

◆ prefixLen()

◆ prepForDirect()

void HttpRequest::prepForDirect ( )

◆ prepForPeering()

◆ putCc()

void Http::Message::putCc ( const HttpHdrCc otherCc)
inherited

◆ recordLookup()

void HttpRequest::recordLookup ( const Dns::LookupDetails detail)

◆ reset()

void HttpRequest::reset ( )
virtual

Implements Http::Message.

Definition at line 170 of file HttpRequest.cc.

References clean(), and init().

◆ sanityCheckStartLine()

bool HttpRequest::sanityCheckStartLine ( const char *  buf,
const size_t  hdr_len,
Http::StatusCode error 
)
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 271 of file HttpRequest.cc.

References debugs, HERE(), HttpRequestMethod::HttpRequestMethodXXX(), Http::METHOD_NONE, and Http::scInvalidHeader.

Referenced by PrivateHttpRequest::doSanityCheckStartLine().

◆ setContentLength()

void Http::Message::setContentLength ( int64_t  clen)
inherited

◆ 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 694 of file HttpRequest.cc.

References debugs, effectiveRequestUri(), String::size(), store_id, and StringToSBuf().

Referenced by clientReplyContext::cacheHit(), ClientHttpRequest::doCallouts(), storeKeyPublicByRequestMethod(), and storeSwapMetaBuild().

◆ swapOut()

void HttpRequest::swapOut ( StoreEntry e)

Definition at line 337 of file HttpRequest.cc.

References assert, StoreEntry::buffer(), StoreEntry::flush(), and pack().

Referenced by clientReplyContext::traceReply().

◆ UseCount()

static int HttpRequest::UseCount ( )
inlinestatic

Definition at line 50 of file HttpRequest.h.

Member Data Documentation

◆ adaptHistory_

Adaptation::History::Pointer HttpRequest::adaptHistory_
mutableprivate

Definition at line 119 of file HttpRequest.h.

Referenced by adaptHistory(), adaptHistoryImport(), clean(), inheritProperties(), and init().

◆ auth_user_request

◆ body_pipe

◆ cache_control

◆ client_addr

◆ clientConnectionManager

◆ content_length

◆ dnsWait

int HttpRequest::dnsWait

◆ downloader

◆ errDetail

◆ errType

◆ etag

◆ extacl_log

String HttpRequest::extacl_log

Definition at line 183 of file HttpRequest.h.

Referenced by Format::Format::assemble(), clean(), clone(), copyResultsFromEntry(), and init().

◆ extacl_message

String HttpRequest::extacl_message

◆ extacl_passwd

◆ extacl_user

◆ flags

RequestFlags HttpRequest::flags

Definition at line 141 of file HttpRequest.h.

Referenced by StoreEntry::adjustVary(), AuthenticateAcl(), clientReplyContext::buildReplyHeader(), HttpStateData::buildRequestPrefix(), clientReplyContext::cacheHit(), DestinationIPLookup::checkForAsync(), CheckQuickAbortIsReasonable(), FwdState::checkRetry(), clientReplyContext::checkTransferDone(), clientBeginRequest(), clientCheckPinning(), TunnelStateData::clientExpectsConnectResponse(), clientFollowXForwardedForCheck(), clientHierarchical(), clientInterpretRequestHeaders(), clientProcessRequest(), clientProcessRequestFinished(), ClientRequestContext::clientRedirectDone(), clientSetKeepaliveFlag(), FwdState::completed(), conditional(), HttpStateData::continueAfterParsingHeader(), copyOneHeaderFromClientsideRequestToUpstreamRequest(), HttpStateData::decideIfWeDoRanges(), FwdState::dispatch(), ClientHttpRequest::doCallouts(), errorAppendEntry(), FindListeningPortAddress(), getOutgoingAddress(), ClientHttpRequest::handleAdaptedHeader(), clientReplyContext::handleIMSReply(), Http::One::Server::handleReply(), StoreEntry::hasIfNoneMatchEtag(), HttpStateData::httpBuildRequestHeader(), httpFixupAuthentication(), httpMaybeRemovePublic(), HttpStateData::HttpStateData(), clientReplyContext::identifyFoundObject(), clientReplyContext::identifyStoreObject(), inheritProperties(), init(), Ssl::PeekingPeerConnector::initialize(), ConnStateData::initiateTunneledRequest(), HappyConnOpener::makeError(), manager(), ACLDestinationASNStrategy::match(), ACLDestinationIP::match(), ACLProxyAuth::matchProxyAuth(), maybeCacheable(), neighborsDigestSelect(), netdbExchangeStart(), ErrorState::NewForwarding(), FwdState::noteConnection(), Ssl::PeekingPeerConnector::noteNegotiationDone(), CacheManager::ParseHeaders(), peerAllowedToUse(), peerDigestRequest(), peerSelectIcpPing(), HttpStateData::peerSupportsConnectionPinning(), peerWouldBePinged(), ConnStateData::pinConnection(), FwdState::pinnedCanRetry(), prepForDirect(), prepForPeering(), clientReplyContext::processConditional(), clientReplyContext::processExpired(), clientReplyContext::processMiss(), HttpStateData::processReplyBody(), HttpStateData::processReplyHeader(), ClientHttpRequest::processRequest(), HttpStateData::processSurrogateControl(), ConnStateData::quitAfterError(), FwdState::reforward(), refreshCheck(), refreshCheckHTTP(), clientReplyContext::replyStatus(), PeerSelector::resolveSelected(), HttpStateData::reusableReply(), FwdState::secureConnectionToPeerIfNeeded(), Http::Stream::sendBody(), clientReplyContext::sendNotModified(), HttpStateData::sendRequest(), Http::Stream::sendStartOfMessage(), clientReplyContext::sendStreamError(), Ssl::ServerBump::ServerBump(), clientReplyContext::setReplyToError(), ClientHttpRequest::sslBumpStart(), FwdState::Start(), FwdState::start(), HappyConnOpener::startConnecting(), FwdState::usePinned(), TunnelStateData::usePinned(), and Http::Stream::writeComplete().

◆ forcedBodyContinuation

◆ hdr_sz

◆ header

HttpHeader Http::Message::header
inherited

Definition at line 75 of file Message.h.

Referenced by StoreEntry::adjustVary(), Ftp::Gateway::appendSuccessHeader(), Format::Format::assemble(), assembleVaryKey(), authDigestNoncePurge(), Auth::UserRequest::authenticate(), ConnStateData::buildFakeRequest(), ErrorState::BuildHttpReply(), Http::One::Server::buildHttpRequest(), Http::Stream::buildRangeHeader(), clientReplyContext::buildReplyHeader(), ESIVarState::buildVary(), canHandle1xx(), clean(), HttpReply::clean(), clientBeginRequest(), clientCheckPinning(), clientGetMoreData(), clientIfRangeMatch(), clientInterpretRequestHeaders(), clientIsContentLengthValid(), clientProcessRequest(), clone(), HttpReply::clone(), ErrorState::compileLegacyCode(), conditional(), Adaptation::Icap::Options::configure(), MimeIcon::created(), Ftp::Relay::createHttpReply(), ErrorState::Dump(), Adaptation::Icap::ModXact::encapsulateHead(), ESIContextNew(), Adaptation::Icap::ModXact::expectIcapTrailers(), HttpReply::expectingBody(), expectingBody(), Mgr::Action::fillEntry(), Ftp::Gateway::ftpAuthRequired(), ftpSendStor(), Ssl::ErrorDetailsManager::getErrorDetail(), Adaptation::Icap::ModXact::gotEncapsulated(), Adaptation::Icap::OptXact::handleCommRead(), Ftp::Server::handleFeatReply(), Ftp::Server::handleRequest(), StoreEntry::hasIfMatchEtag(), StoreEntry::hasIfNoneMatchEtag(), StoreEntry::hasOneOfEtags(), HttpReply::hdrCacheInit(), Http::Message::hdrCacheInit(), hdrCacheInit(), HttpReply::hdrExpirationTime(), HttpStateData::httpBuildRequestHeader(), Log::Format::HttpdCombined(), httpMakeVaryMark(), Http::Message::httpMsgParseStep(), Ftp::HttpReplyWrapper(), TemplateFile::loadFor(), Ftp::Gateway::loginFailed(), HttpReply::make304(), Adaptation::Icap::ModXact::makeRequestHeaders(), ACLHTTPReqHeaderStrategy::match(), ACLHTTPRepHeaderStrategy::match(), ACLRequestHeaderStrategy< header >::match(), ACLReplyHeaderStrategy< header >::match(), mcast_encode(), pack(), HttpReply::packHeadersUsingFastPacker(), Http::Message::packInto(), Http::Message::parseHeader(), parseHeader(), CacheManager::ParseHeaders(), Adaptation::Icap::ModXact::parseIcapHead(), Adaptation::Icap::OptXact::parseResponse(), peerDigestRequest(), Http::Message::persistent(), prefixLen(), prepareLogWithRequestDetails(), Ftp::PrintReply(), clientReplyContext::processConditional(), clientReplyContext::processExpired(), Http::One::Server::processParsedRequest(), HttpStateData::processReplyHeader(), purgeEntriesByHeader(), Http::Message::putCc(), HttpReply::recreateOnNotModified(), HttpReply::redirect(), HttpReply::removeIrrelevantContentLength(), HttpReply::removeStaleWarnings(), HttpStateData::reusableReply(), Ftp::Relay::sendCommand(), Http::Message::setContentLength(), Ftp::Server::setDataCommand(), HttpReply::setHeaders(), UrnState::setUriResFromRequest(), Log::Format::SquidReferer(), Log::Format::SquidUserAgent(), Mgr::Inquirer::start(), CacheManager::start(), Ftp::Gateway::start(), HttpStateData::statusIfComplete(), urlCheckRequest(), urnHandleReply(), HttpReply::validatorsMatch(), varyEvaluateMatch(), Http::One::Server::writeControlMsgAndCall(), Ftp::Server::writeCustomReply(), Ftp::Server::writeErrorReply(), Ftp::Server::writeForwardedReply(), and Ftp::Server::writeForwardedReplyAndCall().

◆ hier

◆ http_ver

◆ icapHistory_

Adaptation::Icap::History::Pointer HttpRequest::icapHistory_
mutableprivate

Definition at line 122 of file HttpRequest.h.

Referenced by clean(), icapHistory(), inheritProperties(), and init().

◆ ims

◆ imslen

◆ indirect_client_addr

◆ lastmod

◆ masterXaction

◆ method

HttpRequestMethod HttpRequest::method

Definition at line 114 of file HttpRequest.h.

Referenced by ConnStateData::abortChunkedRequestBody(), StoreEntry::adjustVary(), asnCacheStart(), Format::Format::assemble(), ConnStateData::buildFakeRequest(), ErrorState::BuildHttpReply(), clientReplyContext::buildReplyHeader(), HttpStateData::buildRequestPrefix(), clientReplyContext::cacheHit(), canonicalCleanUrl(), FwdState::checkRetriable(), clientGetMoreData(), clientHierarchical(), clientInterpretRequestHeaders(), clientIsContentLengthValid(), clientProcessRequest(), ClientRequestContext::clientRedirectDone(), clientSetKeepaliveFlag(), clone(), ErrorState::compileLegacyCode(), constructHelperQuery(), copyOneHeaderFromClientsideRequestToUpstreamRequest(), FwdState::dispatch(), ClientHttpRequest::doCallouts(), clientReplyContext::doGetMoreData(), ErrorState::Dump(), effectiveRequestUri(), Adaptation::Icap::ModXact::encapsulateHead(), esiBufferRecipient(), Adaptation::Icap::ModXact::estimateVirginBody(), HttpReply::expectedBodyTooLarge(), FromUrl(), ftpSendPassive(), Ftp::Gateway::Gateway(), ClientHttpRequest::gotEnough(), ClientHttpRequest::handleAdaptedHeader(), Ftp::Server::handleRequest(), StoreEntry::hasIfNoneMatchEtag(), HttpStateData::haveParsedReplyHeaders(), htcpClear(), htcpQuery(), httpStart(), init(), initHTTP(), HttpStateData::keepaliveAccounting(), ACLMethodStrategy::match(), maybeCacheable(), Client::maybePurgeOthers(), Adaptation::Ecap::RequestLineRep::method(), FwdState::noteConnection(), pack(), packFirstLineInto(), parseFirstLine(), CacheManager::ParseHeaders(), peerAllowedToUse(), peerDigestRequest(), peerSelect(), HttpStateData::persistentConnStatus(), prefixLen(), prepareLogWithRequestDetails(), clientReplyContext::processExpired(), clientReplyContext::processMiss(), clientReplyContext::processOnlyIfCachedMiss(), Http::One::Server::processParsedRequest(), clientReplyContext::processReplyAccessResult(), Ftp::Gateway::processReplyBody(), ClientHttpRequest::processRequest(), clientReplyContext::purgeDoPurgeHead(), clientReplyContext::purgeFoundObject(), clientReplyContext::replyStatus(), FwdState::secureConnectionToPeerIfNeeded(), clientReplyContext::sendNotModified(), clientReplyContext::sendNotModifiedOrPreconditionFailedError(), Http::Stream::sendStartOfMessage(), ConnStateData::serveDelayedError(), Ssl::ServerBump::ServerBump(), Ftp::Server::setReply(), clientReplyContext::setReplyToReply(), Client::startAdaptation(), clientReplyContext::startError(), HttpStateData::statusIfComplete(), storeGetPublicByRequest(), storeKeyPublicByRequest(), switchToTunnel(), testHttpRequest::testCreateFromUrl(), testHttpRequest::testIPv6HostColonBug(), clientReplyContext::traceReply(), HttpStateData::truncateVirginBody(), tunnelStart(), Adaptation::Ecap::RequestLineRep::uri(), urlCanonicalFakeHttps(), urlCheckRequest(), urlMakeAbsolute(), and urnHandleReply().

◆ my_addr

◆ myportname

String HttpRequest::myportname

◆ peer_domain

◆ peer_host

char* HttpRequest::peer_host

◆ peer_login

◆ pstate

◆ range

◆ rangeOffsetLimit

int64_t HttpRequest::rangeOffsetLimit
mutableprivate

Definition at line 260 of file HttpRequest.h.

Referenced by getRangeOffsetLimit(), and init().

◆ sources

◆ 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 storeId().

◆ tag

◆ theNotes

NotePairs::Pointer HttpRequest::theNotes
private

annotations added by the note directive and helpers and(or) by annotate_transaction/annotate_client ACLs.

Definition at line 264 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 Ftp::Gateway::appendSuccessHeader(), asnCacheStart(), Format::Format::assemble(), ConnStateData::borrowPinnedConnection(), ConnStateData::buildFakeRequest(), Http::One::Server::buildHttpRequest(), HttpStateData::buildRequestPrefix(), Ftp::Gateway::buildTitleUrl(), clientReplyContext::cacheHit(), canonicalCleanUrl(), carpSelectParent(), Ftp::Gateway::checkAuth(), HttpStateData::checkDateSkew(), DestinationIPLookup::checkForAsync(), Ftp::Gateway::checkUrlpath(), clean(), clientHierarchical(), clientInterpretRequestHeaders(), clientProcessRequest(), ClientRequestContext::clientRedirectDone(), clone(), ErrorState::compileLegacyCode(), TunnelStateData::connectDone(), FwdState::connectStart(), HttpStateData::continueAfterParsingHeader(), copyOneHeaderFromClientsideRequestToUpstreamRequest(), ICP2State::created(), FwdState::dispatch(), doV2Query(), ErrorState::Dump(), effectiveRequestUri(), Adaptation::Icap::ModXact::encapsulateHead(), FromUrl(), ftpFail(), ftpReadType(), Ftp::Gateway::ftpRealm(), ftpSendType(), ftpSendUser(), ftpTrySlashHack(), getDefaultParent(), getFirstUpParent(), TunnelStateData::getHost(), getRoundRobinParent(), getWeightedRoundRobinParent(), gopher_request_parse(), gopherSendComplete(), HttpStateData::httpBuildRequestHeader(), clientReplyContext::identifyFoundObject(), init(), initHTTP(), Security::BlindPeerConnector::initialize(), Ssl::PeekingPeerConnector::initialize(), ConnStateData::initiateTunneledRequest(), internalStart(), ACLUrlPathStrategy::match(), ACLUrlPortStrategy::match(), ACLProtocolStrategy::match(), ACLUrlLoginStrategy::match(), ACLDestinationASNStrategy::match(), ACLDestinationDomainStrategy::match(), ACLServerNameStrategy::match(), ACLDestinationIP::match(), maybeCacheable(), neighborsHtcpReply(), neighborsUdpAck(), neighborsUdpPing(), netdbClosestParent(), netdbExchangeStart(), FwdState::noteConnection(), TunnelStateData::noteConnection(), Ssl::PeekingPeerConnector::noteNegotiationDone(), operator<<(), pack(), packFirstLineInto(), parseFirstLine(), peerAllowedToUse(), peerDigestRequest(), ConnStateData::pinConnection(), ConnStateData::postHttpsAccept(), prefixLen(), HttpStateData::processReplyBody(), HttpStateData::processReplyHeader(), clientReplyContext::purgeRequest(), FwdState::secureConnectionToPeerIfNeeded(), HttpStateData::sendRequest(), ConnStateData::serveDelayedError(), Ssl::ServerBump::ServerBump(), UrnState::setUriResFromRequest(), PeerPoolMgr::start(), FwdState::Start(), Ftp::Gateway::start(), TunnelStateData::startConnecting(), testHttpRequest::testCreateFromUrl(), testHttpRequest::testIPv6HostColonBug(), Http::Tunneler::Tunneler(), Adaptation::Ecap::RequestLineRep::uri(), urlCanonicalFakeHttps(), urlCheckRequest(), urlMakeAbsolute(), Ftp::UrlWith2f(), FwdState::usePinned(), TunnelStateData::usePinned(), Adaptation::Service::wants(), and whoisStart().

◆ vary_headers

◆ x_forwarded_for_iterator

String HttpRequest::x_forwarded_for_iterator

Definition at line 188 of file HttpRequest.h.

Referenced by clientFollowXForwardedForCheck().


The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors