Squid Web Cache master
Loading...
Searching...
No Matches
StateFlags.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#ifndef SQUID_SRC_HTTP_STATEFLAGS_H
10#define SQUID_SRC_HTTP_STATEFLAGS_H
11
12namespace Http
13{
14
16{
17public:
18 unsigned int front_end_https = 0;
19
21 bool keepalive = false;
22
25 bool forceClose = false;
26
27 bool only_if_cached = false;
28
30 bool handling1xx = false;
31
36
37 bool headers_parsed = false;
38
40 bool peering = false;
41
44 bool tunneling = false;
45
53 bool toOrigin = false;
54
56 bool toOriginPeer() const { return toOrigin && peering && !tunneling; }
57
58 bool keepalive_broken = false;
59 bool request_sent = false;
60 bool chunked = false;
61 bool chunked_request = false;
62 bool sentLastChunk = false;
63};
64
65} // namespace Http
66
67#endif /* SQUID_SRC_HTTP_STATEFLAGS_H */
68
bool sentLastChunk
do not try to write last-chunk again
Definition StateFlags.h:62
bool peering
Whether the next TCP hop is a cache_peer, including originserver.
Definition StateFlags.h:40
bool chunked_request
writing a chunked request
Definition StateFlags.h:61
bool serverSwitchedProtocols
Definition StateFlags.h:35
bool keepalive
whether the Squid-sent request offers to keep the connection persistent
Definition StateFlags.h:21
bool toOriginPeer() const
Whether the next TCP/HTTP hop is an originserver cache_peer.
Definition StateFlags.h:56
bool chunked
reading a chunked response; TODO: rename
Definition StateFlags.h:60
bool handling1xx
Whether we are processing an HTTP 1xx control message.
Definition StateFlags.h:30
unsigned int front_end_https
send "Front-End-Https: On" header (off/on/auto=2)
Definition StateFlags.h:18
Definition forward.h:18