#include <RequestFlags.h>

Collaboration diagram for RequestFlags:

Public Member Functions

RequestFlags cloneAdaptationImmune () const
 
bool doneFollowXff () const
 
bool noCacheHack () const
 

Public Attributes

bool noCache = false
 
bool ims = false
 
bool auth = false
 
bool auth_no_keytab = false
 
bool cachable = false
 
bool hierarchical = false
 
bool loopDetected = false
 
bool proxyKeepalive = false
 
bool proxying = false
 
bool refresh = false
 
bool redirected = false
 
bool needValidation = false
 
bool failOnValidationError = false
 
bool staleIfHit = false
 
bool nocacheHack = false
 
bool accelerated = false
 
bool ignoreCc = false
 
bool intercepted = false
 
bool hostVerified = false
 
bool interceptTproxy = false
 Set for requests handled by a "tproxy" port. More...
 
bool spoofClientIp = false
 
bool internal = false
 
bool mustKeepalive = false
 
bool connectionAuth = false
 
bool connectionAuthDisabled = false
 
bool connectionProxyAuth = false
 
bool pinned = false
 
bool authSent = false
 
bool noDirect = false
 
bool chunkedReply = false
 
bool streamError = false
 
bool sslPeek = false
 
bool done_follow_x_forwarded_for = false
 
bool sslBumped = false
 
bool ftpNative = false
 carries a representation of an FTP command [received on ftp_port] More...
 
bool destinationIpLookedUp = false
 
bool resetTcp = false
 
bool isRanged = false
 
bool forceTunnel = false
 whether to forward via TunnelStateData (instead of FwdState) More...
 

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

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

bool RequestFlags::doneFollowXff ( ) const
inline

Definition at line 121 of file RequestFlags.h.

References done_follow_x_forwarded_for.

Referenced by ClientRequestContext::clientAccessCheck().

bool RequestFlags::noCacheHack ( ) const
inline

Member Data Documentation

bool RequestFlags::auth_no_keytab = false

do not use keytabs for peer Kerberos authentication

Definition at line 30 of file RequestFlags.h.

Referenced by FwdState::dispatch(), httpFixupAuthentication(), switchToTunnel(), and tunnelConnectDone().

bool RequestFlags::authSent = false

Authentication was already sent upstream (e.g. due tcp-level auth)

Definition at line 87 of file RequestFlags.h.

Referenced by HttpStateData::buildRequestPrefix(), HttpStateData::processReplyBody(), and HttpStateData::reusableReply().

bool RequestFlags::chunkedReply = false

Reply with chunked transfer encoding

Definition at line 92 of file RequestFlags.h.

Referenced by clientReplyContext::buildReplyHeader(), clientReplyContext::checkTransferDone(), and Http::One::Server::handleReply().

bool RequestFlags::connectionAuth = false
bool RequestFlags::connectionAuthDisabled = false

set if connection oriented auth can not be supported

Definition at line 80 of file RequestFlags.h.

Referenced by clientReplyContext::buildReplyHeader(), clientCheckPinning(), and HttpStateData::processReplyHeader().

bool RequestFlags::connectionProxyAuth = false

Request wants connection oriented auth

Definition at line 83 of file RequestFlags.h.

Referenced by clientCheckPinning().

bool RequestFlags::destinationIpLookedUp = false

Definition at line 106 of file RequestFlags.h.

Referenced by ACLDestinationASNStrategy::match(), and ACLDestinationIP::match().

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 101 of file RequestFlags.h.

Referenced by clientFollowXForwardedForCheck(), and doneFollowXff().

bool RequestFlags::failOnValidationError = false

whether we should fail if validation fails

Definition at line 50 of file RequestFlags.h.

Referenced by clientReplyContext::handleIMSReply(), and refreshCheck().

bool RequestFlags::ftpNative = false
bool RequestFlags::hierarchical = false
bool RequestFlags::hostVerified = false
bool RequestFlags::ignoreCc = false

if set, ignore Cache-Control headers

Definition at line 62 of file RequestFlags.h.

Referenced by clientInterpretRequestHeaders(), HttpRequest::manager(), HttpRequest::maybeCacheable(), and refreshCheck().

bool RequestFlags::internal = false

set if the request is internal (

See Also
ClientHttpRequest::flags.internal)

Definition at line 74 of file RequestFlags.h.

Referenced by clientProcessRequest(), ClientRequestContext::hostHeaderVerify(), clientReplyContext::identifyStoreObject(), and FwdState::Start().

bool RequestFlags::isRanged = false

set if the request is ranged

Definition at line 110 of file RequestFlags.h.

Referenced by clientInterpretRequestHeaders(), StoreEntry::hasIfNoneMatchEtag(), and HttpStateData::httpBuildRequestHeader().

bool RequestFlags::loopDetected = false
bool RequestFlags::mustKeepalive = false

if set, request to try very hard to keep the connection alive

Definition at line 76 of file RequestFlags.h.

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

bool RequestFlags::needValidation = false
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 58 of file RequestFlags.h.

Referenced by clientInterpretRequestHeaders(), and noCacheHack().

bool RequestFlags::noDirect = false

Deny direct forwarding unless overriden by always_direct Used in accelerator mode

Definition at line 90 of file RequestFlags.h.

Referenced by clientProcessRequest(), and peerSelectFoo().

bool RequestFlags::pinned = false
bool RequestFlags::proxyKeepalive = false
bool RequestFlags::redirected = false
bool RequestFlags::refresh = false

content has expired, need to refresh it

Definition at line 42 of file RequestFlags.h.

Referenced by Store::Controller::allowCollapsing(), peerAllowedToUse(), peerDigestRequest(), and clientReplyContext::processExpired().

bool RequestFlags::resetTcp = false

request to reset the TCP stream

Definition at line 108 of file RequestFlags.h.

Referenced by clientProcessRequestFinished(), and errorAppendEntry().

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 72 of file RequestFlags.h.

Referenced by getOutgoingAddress(), HttpRequest::manager(), ps_state::noteIp(), and HttpStateData::processReplyBody().

bool RequestFlags::sslPeek = false

internal ssl-bump request to get server cert

Definition at line 96 of file RequestFlags.h.

Referenced by FwdState::completed(), FwdState::connectDone(), FwdState::dispatch(), and ConnStateData::switchToHttps().

bool RequestFlags::staleIfHit = false

reply is stale if it is a hit

Definition at line 52 of file RequestFlags.h.

Referenced by clientReplyContext::buildReplyHeader(), clientReplyContext::handleIMSReply(), and refreshCheckHTTP().

bool RequestFlags::streamError = false

set if stream error has occured

Definition at line 94 of file RequestFlags.h.

Referenced by Http::One::Server::handleReply(), and clientReplyContext::sendStreamError().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors