#include <StateFlags.h>
Public Member Functions | |
bool | toOriginPeer () const |
Whether the next TCP/HTTP hop is an originserver cache_peer. More... | |
Public Attributes | |
unsigned int | front_end_https = 0 |
send "Front-End-Https: On" header (off/on/auto=2) More... | |
bool | keepalive = false |
whether the Squid-sent request offers to keep the connection persistent More... | |
bool | forceClose = false |
bool | only_if_cached = false |
bool | handling1xx = false |
Whether we are processing an HTTP 1xx control message. More... | |
bool | serverSwitchedProtocols = false |
bool | headers_parsed = false |
bool | peering = false |
Whether the next TCP hop is a cache_peer, including originserver. More... | |
bool | tunneling = false |
bool | toOrigin = false |
bool | keepalive_broken = false |
bool | abuse_detected = false |
bool | request_sent = false |
bool | do_next_read = false |
bool | chunked = false |
reading a chunked response; TODO: rename More... | |
bool | chunked_request = false |
writing a chunked request More... | |
bool | sentLastChunk = false |
do not try to write last-chunk again More... | |
Detailed Description
Definition at line 15 of file StateFlags.h.
Member Function Documentation
◆ toOriginPeer()
|
inline |
Definition at line 56 of file StateFlags.h.
References peering, toOrigin, and tunneling.
Referenced by copyOneHeaderFromClientsideRequestToUpstreamRequest().
Member Data Documentation
◆ abuse_detected
bool Http::StateFlags::abuse_detected = false |
Definition at line 59 of file StateFlags.h.
Referenced by HttpStateData::handleMoreRequestBodyAvailable().
◆ chunked
bool Http::StateFlags::chunked = false |
Definition at line 62 of file StateFlags.h.
Referenced by HttpStateData::decodeAndWriteReplyBody(), HttpStateData::keepaliveAccounting(), HttpStateData::persistentConnStatus(), HttpStateData::processReplyBody(), and HttpStateData::processReplyHeader().
◆ chunked_request
bool Http::StateFlags::chunked_request = false |
Definition at line 63 of file StateFlags.h.
Referenced by copyOneHeaderFromClientsideRequestToUpstreamRequest(), HttpStateData::doneSendingRequestBody(), HttpStateData::getMoreRequestBody(), HttpStateData::httpBuildRequestHeader(), and HttpStateData::sendRequest().
◆ do_next_read
bool Http::StateFlags::do_next_read = false |
Definition at line 61 of file StateFlags.h.
Referenced by HttpStateData::continueAfterParsingHeader(), HttpStateData::decodeAndWriteReplyBody(), HttpStateData::maybeMakeSpaceAvailable(), HttpStateData::maybeReadVirginBody(), HttpStateData::noteDelayAwareReadChance(), HttpStateData::processReplyBody(), HttpStateData::readReply(), and HttpStateData::sendRequest().
◆ forceClose
bool Http::StateFlags::forceClose = false |
whether Squid should not keep the connection persistent despite offering to do so previously (and setting the keepalive flag)
Definition at line 25 of file StateFlags.h.
Referenced by HttpStateData::forwardUpgrade(), and HttpStateData::statusIfComplete().
◆ front_end_https
unsigned int Http::StateFlags::front_end_https = 0 |
Definition at line 18 of file StateFlags.h.
Referenced by copyOneHeaderFromClientsideRequestToUpstreamRequest(), HttpStateData::httpBuildRequestHeader(), and HttpStateData::sendRequest().
◆ handling1xx
bool Http::StateFlags::handling1xx = false |
Definition at line 30 of file StateFlags.h.
Referenced by HttpStateData::continueAfterParsingHeader(), HttpStateData::handle1xx(), HttpStateData::proceedAfter1xx(), and HttpStateData::processReply().
◆ headers_parsed
bool Http::StateFlags::headers_parsed = false |
Definition at line 37 of file StateFlags.h.
Referenced by HttpStateData::continueAfterParsingHeader(), HttpStateData::handleMoreRequestBodyAvailable(), HttpStateData::maybeMakeSpaceAvailable(), HttpStateData::processReply(), HttpStateData::processReplyBody(), HttpStateData::processReplyHeader(), and HttpStateData::truncateVirginBody().
◆ keepalive
bool Http::StateFlags::keepalive = false |
Definition at line 21 of file StateFlags.h.
Referenced by HttpStateData::forwardUpgrade(), HttpStateData::httpBuildRequestHeader(), HttpStateData::keepaliveAccounting(), HttpStateData::sendRequest(), and HttpStateData::statusIfComplete().
◆ keepalive_broken
bool Http::StateFlags::keepalive_broken = false |
Definition at line 58 of file StateFlags.h.
Referenced by HttpStateData::keepaliveAccounting(), and HttpStateData::processReplyBody().
◆ only_if_cached
bool Http::StateFlags::only_if_cached = false |
Definition at line 27 of file StateFlags.h.
Referenced by HttpStateData::httpBuildRequestHeader(), and HttpStateData::sendRequest().
◆ peering
bool Http::StateFlags::peering = false |
Definition at line 40 of file StateFlags.h.
Referenced by HttpStateData::HttpStateData(), httpFixupAuthentication(), HttpStateData::keepaliveAccounting(), toOriginPeer(), and Http::Tunneler::writeRequest().
◆ request_sent
bool Http::StateFlags::request_sent = false |
Definition at line 60 of file StateFlags.h.
Referenced by HttpStateData::sendComplete(), and HttpStateData::statusIfComplete().
◆ sentLastChunk
bool Http::StateFlags::sentLastChunk = false |
Definition at line 64 of file StateFlags.h.
Referenced by HttpStateData::finishingChunkedRequest(), and HttpStateData::getMoreRequestBody().
◆ serverSwitchedProtocols
bool Http::StateFlags::serverSwitchedProtocols = false |
Whether we received an HTTP 101 (Switching Protocols) control message. Implies true handling1xx, but the serverSwitchedProtocols state is permanent/final while handling of other control messages usually stops.
Definition at line 35 of file StateFlags.h.
Referenced by HttpStateData::drop1xx(), HttpStateData::handle1xx(), and HttpStateData::proceedAfter1xx().
◆ toOrigin
bool Http::StateFlags::toOrigin = false |
Whether the next HTTP hop is an origin server, including an originserver cache_peer. The three possible cases are:
- a direct TCP/HTTP connection to an origin server,
- a direct TCP/HTTP connection to an originserver cache_peer, and
- a CONNECT tunnel through a [non-originserver] cache_peer [to an origin server] Thus, toOrigin is false only when the HTTP request is sent over a direct TCP/HTTP connection to a non-originserver cache_peer.
Definition at line 53 of file StateFlags.h.
Referenced by HttpStateData::HttpStateData(), HttpStateData::buildRequestPrefix(), HttpStateData::checkDateSkew(), copyOneHeaderFromClientsideRequestToUpstreamRequest(), HttpStateData::httpBuildRequestHeader(), httpFixupAuthentication(), and toOriginPeer().
◆ tunneling
bool Http::StateFlags::tunneling = false |
Whether this request is being forwarded inside a CONNECT tunnel through a [non-originserver] cache_peer; implies peering and toOrigin
Definition at line 44 of file StateFlags.h.
Referenced by HttpStateData::HttpStateData(), httpFixupAuthentication(), HttpStateData::keepaliveAccounting(), HttpStateData::peerSupportsConnectionPinning(), HttpStateData::sendRequest(), and toOriginPeer().
The documentation for this class was generated from the following file:
- src/http/StateFlags.h