Squid Web Cache master
Loading...
Searching...
No Matches
RequestFlags.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2025 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9/* DEBUG: section 73 HTTP Request */
10
11#ifndef SQUID_SRC_REQUESTFLAGS_H
12#define SQUID_SRC_REQUESTFLAGS_H
13
14#include "base/SupportOrVeto.h"
15
23{
24public:
26 bool noCache = false;
28 bool ims = false;
30 bool auth = false;
32 bool auth_no_keytab = false;
33
36
38 bool hierarchical = false;
40 bool loopDetected = false;
42 bool proxyKeepalive = false;
44 bool refresh = false;
46 bool redirected = false;
50 bool needValidation = false;
54 bool staleIfHit = false;
60 bool nocacheHack = false;
62 bool accelerated = false;
64 bool ignoreCc = false;
66 bool intercepted = false;
68 bool hostVerified = false;
70 bool interceptTproxy = false;
74 bool spoofClientIp = false;
75
80 bool internal = false;
81
83 bool mustKeepalive = false;
85 bool connectionAuth = false;
88 // XXX This is set in clientCheckPinning but never tested
90 bool connectionProxyAuth = false;
92 bool pinned = false;
94 bool authSent = false;
97 bool noDirect = false;
99 bool chunkedReply = false;
101 bool streamError = false;
103 bool sslPeek = false;
110 bool sslBumped = false;
112 bool ftpNative = false;
115 bool resetTcp = false;
117 bool isRanged = false;
118
120 bool forceTunnel = false;
121
126
127 // if FOLLOW_X_FORWARDED_FOR is not set, we always return "done".
131
132 // if USE_HTTP_VIOLATIONS is not set, never allow this
133 bool noCacheHack() const {
135 }
136
140 void disableCacheUse(const char *reason);
141};
142
143#endif /* SQUID_SRC_REQUESTFLAGS_H */
144
#define FOLLOW_X_FORWARDED_FOR
Definition autoconf.h:23
#define USE_HTTP_VIOLATIONS
Definition autoconf.h:1535
bool doneFollowXff() const
bool needValidation
bool interceptTproxy
Set for requests handled by a "tproxy" port.
bool connectionAuth
bool forceTunnel
whether to forward via TunnelStateData (instead of FwdState)
bool noCacheHack() const
bool ftpNative
carries a representation of an FTP command [received on ftp_port]
bool connectionProxyAuth
bool done_follow_x_forwarded_for
void disableCacheUse(const char *reason)
bool proxyKeepalive
bool auth_no_keytab
bool failOnValidationError
bool destinationIpLookedUp
bool connectionAuthDisabled
RequestFlags cloneAdaptationImmune() const
SupportOrVeto cachable
whether the response may be stored in the cache
a boolean flag that is false by default and becomes permanently false if vetoed