RequestFlags.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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_REQUESTFLAGS_H_
12 #define SQUID_REQUESTFLAGS_H_
13 
21 {
22 public:
24  bool noCache = false;
26  bool ims = false;
28  bool auth = false;
30  bool auth_no_keytab = false;
32  bool cachable = false;
34  bool hierarchical = false;
36  bool loopDetected = false;
38  bool proxyKeepalive = false;
39  /* this should be killed, also in httpstateflags */
40  bool proxying = false;
42  bool refresh = false;
44  bool redirected = false;
48  bool needValidation = false;
50  bool failOnValidationError = false;
52  bool staleIfHit = false;
58  bool nocacheHack = false;
60  bool accelerated = false;
62  bool ignoreCc = false;
64  bool intercepted = false;
66  bool hostVerified = false;
68  bool interceptTproxy = false;
72  bool spoofClientIp = false;
74  bool internal = false;
76  bool mustKeepalive = false;
78  bool connectionAuth = false;
80  bool connectionAuthDisabled = false;
81  // XXX This is set in clientCheckPinning but never tested
83  bool connectionProxyAuth = false;
85  bool pinned = false;
87  bool authSent = false;
90  bool noDirect = false;
92  bool chunkedReply = false;
94  bool streamError = false;
96  bool sslPeek = false;
103  bool sslBumped = false;
105  bool ftpNative = false;
106  bool destinationIpLookedUp = false;
108  bool resetTcp = false;
110  bool isRanged = false;
111 
113  bool forceTunnel = false;
114 
119 
120  // if FOLLOW_X_FORWARDED_FOR is not set, we always return "done".
121  bool doneFollowXff() const {
122  return done_follow_x_forwarded_for || !FOLLOW_X_FORWARDED_FOR;
123  }
124 
125  // if USE_HTTP_VIOLATIONS is not set, never allow this
126  bool noCacheHack() const {
127  return USE_HTTP_VIOLATIONS && nocacheHack;
128  }
129 };
130 
131 #endif /* SQUID_REQUESTFLAGS_H_ */
132 
bool interceptTproxy
Set for requests handled by a "tproxy" port.
Definition: RequestFlags.h:68
bool hierarchical
Definition: RequestFlags.h:34
bool loopDetected
Definition: RequestFlags.h:36
bool ftpNative
carries a representation of an FTP command [received on ftp_port]
Definition: RequestFlags.h:105
RequestFlags cloneAdaptationImmune() const
Definition: RequestFlags.cc:18
bool noCacheHack() const
Definition: RequestFlags.h:126
bool doneFollowXff() const
Definition: RequestFlags.h:121
bool done_follow_x_forwarded_for
Definition: RequestFlags.h:101
bool hostVerified
Definition: RequestFlags.h:66
bool connectionAuth
Definition: RequestFlags.h:78
bool failOnValidationError
Definition: RequestFlags.h:50
bool destinationIpLookedUp
Definition: RequestFlags.h:106
bool streamError
Definition: RequestFlags.h:94
bool auth_no_keytab
Definition: RequestFlags.h:30
bool connectionAuthDisabled
Definition: RequestFlags.h:80
bool connectionProxyAuth
Definition: RequestFlags.h:83
bool chunkedReply
Definition: RequestFlags.h:92
bool mustKeepalive
Definition: RequestFlags.h:76
bool accelerated
Definition: RequestFlags.h:60
bool intercepted
Definition: RequestFlags.h:64
bool proxyKeepalive
Definition: RequestFlags.h:38
bool spoofClientIp
Definition: RequestFlags.h:72
bool needValidation
Definition: RequestFlags.h:48
bool forceTunnel
whether to forward via TunnelStateData (instead of FwdState)
Definition: RequestFlags.h:113
bool nocacheHack
Definition: RequestFlags.h:58

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors