#include <RequestFlags.h>

Public Member Functions | |
RequestFlags | cloneAdaptationImmune () const |
bool | doneFollowXff () const |
bool | noCacheHack () const |
Detailed Description
request-related flags
Contains both flags marking a request's current state, and flags requesting some processing to be done at a later stage. TODO: better distinguish the two cases.
Definition at line 20 of file RequestFlags.h.
Member Function Documentation
◆ cloneAdaptationImmune()
RequestFlags RequestFlags::cloneAdaptationImmune | ( | ) | const |
clone the flags, resetting to default those which are not safe in a related (e.g. ICAP-adapted) request.
Definition at line 18 of file RequestFlags.cc.
Referenced by HttpRequest::inheritProperties().
◆ doneFollowXff()
|
inline |
Definition at line 119 of file RequestFlags.h.
References done_follow_x_forwarded_for.
Referenced by ClientRequestContext::clientAccessCheck().
◆ noCacheHack()
|
inline |
Definition at line 124 of file RequestFlags.h.
References nocacheHack.
Referenced by clientReplyContext::cacheHit(), and clientReplyContext::identifyFoundObject().
Member Data Documentation
◆ accelerated
bool RequestFlags::accelerated = false |
this request is accelerated (reverse-proxy)
Definition at line 58 of file RequestFlags.h.
Referenced by HttpStateData::continueAfterParsingHeader(), HttpStateData::httpBuildRequestHeader(), and HttpStateData::processSurrogateControl().
◆ auth
bool RequestFlags::auth = false |
request is authenticated
Definition at line 28 of file RequestFlags.h.
Referenced by HttpStateData::reusableReply(), FwdState::usePinned(), and TunnelStateData::usePinned().
◆ auth_no_keytab
bool RequestFlags::auth_no_keytab = false |
do not use keytabs for peer Kerberos authentication
Definition at line 30 of file RequestFlags.h.
Referenced by HttpRequest::prepForDirect(), and HttpRequest::prepForPeering().
◆ authSent
bool RequestFlags::authSent = false |
Authentication was already sent upstream (e.g. due tcp-level auth)
Definition at line 85 of file RequestFlags.h.
Referenced by HttpStateData::buildRequestPrefix(), HttpStateData::processReplyBody(), and HttpStateData::reusableReply().
◆ cachable
bool RequestFlags::cachable = false |
he response to the request may be stored in the cache
Definition at line 32 of file RequestFlags.h.
Referenced by ClientRequestContext::checkNoCacheDone(), CheckQuickAbortIsReasonable(), testRock::createEntry(), clientReplyContext::createStoreEntry(), HttpStateData::decideIfWeDoRanges(), ClientHttpRequest::doCallouts(), ClientRequestContext::hostHeaderVerifyFailed(), HttpStateData::httpBuildRequestHeader(), httpMaybeRemovePublic(), peerDigestRequest(), Ftp::Server::setReply(), storeCreateEntry(), storeDigestRewriteStart(), and testUfs::testUfsSearch().
◆ chunkedReply
bool RequestFlags::chunkedReply = false |
Reply with chunked transfer encoding
Definition at line 90 of file RequestFlags.h.
Referenced by clientReplyContext::checkTransferDone(), and Http::One::Server::handleReply().
◆ connectionAuth
bool RequestFlags::connectionAuth = false |
set if the request wants connection oriented auth
Definition at line 76 of file RequestFlags.h.
Referenced by HttpStateData::buildRequestPrefix(), HttpStateData::decideIfWeDoRanges(), and HttpStateData::processReplyBody().
◆ connectionAuthDisabled
bool RequestFlags::connectionAuthDisabled = false |
set if connection oriented auth can not be supported
Definition at line 78 of file RequestFlags.h.
Referenced by HttpStateData::processReplyHeader().
◆ connectionProxyAuth
bool RequestFlags::connectionProxyAuth = false |
Request wants connection oriented auth
Definition at line 81 of file RequestFlags.h.
◆ destinationIpLookedUp
bool RequestFlags::destinationIpLookedUp = false |
Definition at line 104 of file RequestFlags.h.
Referenced by ACLDestinationIP::match(), and ACLDestinationASNStrategy::match().
◆ done_follow_x_forwarded_for
bool RequestFlags::done_follow_x_forwarded_for = false |
set if X-Forwarded-For checking is complete
do not read directly; use doneFollowXff for reading
Definition at line 99 of file RequestFlags.h.
Referenced by doneFollowXff().
◆ failOnValidationError
bool RequestFlags::failOnValidationError = false |
whether we should fail if validation fails
Definition at line 48 of file RequestFlags.h.
Referenced by clientReplyContext::handleIMSReply().
◆ forceTunnel
bool RequestFlags::forceTunnel = false |
Definition at line 111 of file RequestFlags.h.
Referenced by TunnelStateData::clientExpectsConnectResponse(), ClientHttpRequest::processRequest(), and ClientRequestContext::sslBumpAccessCheck().
◆ ftpNative
bool RequestFlags::ftpNative = false |
Definition at line 103 of file RequestFlags.h.
Referenced by FwdState::dispatch(), and FwdState::start().
◆ hierarchical
bool RequestFlags::hierarchical = false |
the request can be forwarded through the hierarchy
Definition at line 34 of file RequestFlags.h.
Referenced by ClientRequestContext::hostHeaderVerifyFailed(), PeerSelector::selectMore(), and storeCreateEntry().
◆ hostVerified
bool RequestFlags::hostVerified = false |
set if the Host: header passed verification
Definition at line 64 of file RequestFlags.h.
Referenced by ClientRequestContext::hostHeaderIpVerify(), ClientRequestContext::hostHeaderVerify(), HttpRequest::maybeCacheable(), PeerSelector::resolveSelected(), and FwdState::start().
◆ ignoreCc
bool RequestFlags::ignoreCc = false |
if set, ignore Cache-Control headers
Definition at line 60 of file RequestFlags.h.
Referenced by HttpRequest::manager(), and HttpRequest::maybeCacheable().
◆ ims
bool RequestFlags::ims = false |
request is if-modified-since
Definition at line 26 of file RequestFlags.h.
Referenced by HttpRequest::conditional(), clientReplyContext::handleIMSReply(), clientReplyContext::processConditional(), and clientReplyContext::sendNotModified().
◆ intercepted
bool RequestFlags::intercepted = false |
set for intercepted requests
Definition at line 62 of file RequestFlags.h.
Referenced by TunnelStateData::clientExpectsConnectResponse(), ClientRequestContext::hostHeaderVerify(), HttpRequest::manager(), ACLDestinationIP::match(), HttpRequest::maybeCacheable(), PeerSelector::resolveSelected(), ClientHttpRequest::sslBumpStart(), and FwdState::start().
◆ interceptTproxy
bool RequestFlags::interceptTproxy = false |
Definition at line 66 of file RequestFlags.h.
Referenced by TunnelStateData::clientExpectsConnectResponse(), ClientRequestContext::hostHeaderVerify(), HttpRequest::manager(), ACLDestinationIP::match(), HttpRequest::maybeCacheable(), PeerSelector::resolveSelected(), ClientHttpRequest::sslBumpStart(), and FwdState::start().
◆ internal
bool RequestFlags::internal = false |
set if the request is internal (
- See also
- ClientHttpRequest::flags.internal)
Definition at line 72 of file RequestFlags.h.
Referenced by ClientRequestContext::hostHeaderVerify(), clientReplyContext::identifyStoreObject(), and FwdState::Start().
◆ isRanged
bool RequestFlags::isRanged = false |
set if the request is ranged
Definition at line 108 of file RequestFlags.h.
Referenced by HttpStateData::httpBuildRequestHeader().
◆ loopDetected
bool RequestFlags::loopDetected = false |
a loop was detected on this request
Definition at line 36 of file RequestFlags.h.
Referenced by netdbExchangeStart(), clientReplyContext::processMiss(), and PeerSelector::selectMore().
◆ mustKeepalive
bool RequestFlags::mustKeepalive = false |
if set, request to try very hard to keep the connection alive
Definition at line 74 of file RequestFlags.h.
Referenced by HttpStateData::sendRequest().
◆ needValidation
bool RequestFlags::needValidation = false |
the requested object needs to be validated. See client_side_reply.cc for further information.
Definition at line 46 of file RequestFlags.h.
Referenced by clientReplyContext::buildReplyHeader(), clientReplyContext::cacheHit(), clientReplyContext::createStoreEntry(), HappyConnOpener::makeError(), and ErrorState::NewForwarding().
◆ noCache
bool RequestFlags::noCache = false |
true if the response to this request may not be READ from cache
Definition at line 24 of file RequestFlags.h.
Referenced by clientReplyContext::cacheHit(), ClientRequestContext::checkNoCacheDone(), clientReplyContext::identifyFoundObject(), clientReplyContext::identifyStoreObject(), and Ftp::Server::setReply().
◆ nocacheHack
bool RequestFlags::nocacheHack = false |
request to override no-cache directives
always use noCacheHack() for reading.
- Note
- only meaningful if USE_HTTP_VIOLATIONS is defined at build time
Definition at line 56 of file RequestFlags.h.
Referenced by noCacheHack().
◆ noDirect
bool RequestFlags::noDirect = false |
Deny direct forwarding unless overridden by always_direct Used in accelerator mode
Definition at line 88 of file RequestFlags.h.
Referenced by PeerSelector::selectMore().
◆ pinned
bool RequestFlags::pinned = false |
set if the request was sent on a pinned connection
Definition at line 83 of file RequestFlags.h.
Referenced by HttpStateData::buildRequestPrefix(), FwdState::checkRetry(), HttpStateData::peerSupportsConnectionPinning(), FwdState::pinnedCanRetry(), HttpStateData::processReplyBody(), FwdState::reforward(), FwdState::secureConnectionToPeerIfNeeded(), HttpStateData::sendRequest(), FwdState::start(), FwdState::usePinned(), and TunnelStateData::usePinned().
◆ proxyKeepalive
bool RequestFlags::proxyKeepalive = false |
the connection can be kept alive
Definition at line 38 of file RequestFlags.h.
Referenced by clientReplyContext::replyStatus(), and clientReplyContext::setReplyToError().
◆ redirected
bool RequestFlags::redirected = false |
request was redirected by redirectors
Definition at line 42 of file RequestFlags.h.
Referenced by ClientRequestContext::clientRedirectDone(), PeerSelector::resolveSelected(), and FwdState::start().
◆ refresh
bool RequestFlags::refresh = false |
content has expired, need to refresh it
Definition at line 40 of file RequestFlags.h.
Referenced by Store::Controller::allowCollapsing(), peerDigestRequest(), and clientReplyContext::processExpired().
◆ resetTcp
bool RequestFlags::resetTcp = false |
request to reset the TCP stream
Definition at line 106 of file RequestFlags.h.
Referenced by errorAppendEntry().
◆ spoofClientIp
bool RequestFlags::spoofClientIp = false |
The client IP address should be spoofed when connecting to the web server. This applies to TPROXY traffic that has not had spoofing disabled through the spoof_client_ip squid.conf ACL.
Definition at line 70 of file RequestFlags.h.
Referenced by HttpRequest::manager(), PeerSelector::noteIp(), and HttpStateData::processReplyBody().
◆ sslBumped
bool RequestFlags::sslBumped = false |
set for ssl-bumped requests
Definition at line 101 of file RequestFlags.h.
Referenced by HttpStateData::HttpStateData(), ClientRequestContext::clientAccessCheckDone(), ACLProxyAuth::matchProxyAuth(), FwdState::noteConnection(), FwdState::pinnedCanRetry(), FwdState::secureConnectionToPeerIfNeeded(), HttpStateData::sendRequest(), and HappyConnOpener::startConnecting().
◆ sslPeek
bool RequestFlags::sslPeek = false |
internal ssl-bump request to get server cert
Definition at line 94 of file RequestFlags.h.
Referenced by FwdState::completed(), FwdState::dispatch(), FwdState::noteConnection(), FwdState::secureConnectionToPeer(), and FwdState::secureConnectionToPeerIfNeeded().
◆ staleIfHit
bool RequestFlags::staleIfHit = false |
reply is stale if it is a hit
Definition at line 50 of file RequestFlags.h.
Referenced by clientReplyContext::buildReplyHeader(), and clientReplyContext::handleIMSReply().
◆ streamError
bool RequestFlags::streamError = false |
set if stream error has occurred
Definition at line 92 of file RequestFlags.h.
Referenced by Http::One::Server::handleReply(), and clientReplyContext::sendStreamError().
The documentation for this class was generated from the following files:
- src/RequestFlags.h
- src/RequestFlags.cc