StateFlags.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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 abuse_detected = false;
60 bool request_sent = false;
61 bool do_next_read = false;
62 bool chunked = false;
63 bool chunked_request = false;
64 bool sentLastChunk = false;
65};
66
67} // namespace Http
68
69#endif /* SQUID_SRC_HTTP_STATEFLAGS_H */
70
bool sentLastChunk
do not try to write last-chunk again
Definition: StateFlags.h:64
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:63
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:62
bool handling1xx
Whether we are processing an HTTP 1xx control message.
Definition: StateFlags.h:30
bool keepalive_broken
Definition: StateFlags.h:58
unsigned int front_end_https
send "Front-End-Https: On" header (off/on/auto=2)
Definition: StateFlags.h:18
Definition: forward.h:18

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors