StateFlags.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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 #ifndef SQUID_SRC_HTTP_STATEFLAGS_H
10 #define SQUID_SRC_HTTP_STATEFLAGS_H
11 
12 namespace Http
13 {
14 
16 {
17 public:
18  unsigned int front_end_https = 0;
19  bool keepalive = false;
20  bool only_if_cached = false;
21  bool handling1xx = false;
22  bool headers_parsed = false;
23 
25  bool peering = false;
26 
29  bool tunneling = false;
30 
38  bool toOrigin = false;
39 
41  bool toOriginPeer() const { return toOrigin && peering && !tunneling; }
42 
43  bool keepalive_broken = false;
44  bool abuse_detected = false;
45  bool request_sent = false;
46  bool do_next_read = false;
47  bool chunked = false;
48  bool chunked_request = false;
49  bool sentLastChunk = false;
50 };
51 
52 } // namespace Http
53 
54 #endif /* SQUID_SRC_HTTP_STATEFLAGS_H */
55 
bool toOriginPeer() const
Whether the next TCP/HTTP hop is an originserver cache_peer.
Definition: StateFlags.h:41
bool keepalive_broken
Definition: StateFlags.h:43
bool sentLastChunk
do not try to write last-chunk again
Definition: StateFlags.h:49
bool chunked
reading a chunked response; TODO: rename
Definition: StateFlags.h:47
unsigned int front_end_https
send "Front-End-Https: On" header (off/on/auto=2)
Definition: StateFlags.h:18
bool handling1xx
we are ignoring or forwarding 1xx response
Definition: StateFlags.h:21
Definition: forward.h:21
bool peering
Whether the next TCP hop is a cache_peer, including originserver.
Definition: StateFlags.h:25
bool chunked_request
writing a chunked request
Definition: StateFlags.h:48

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors