|
Squid Web Cache master
|
#include <StateFlags.h>
Public Member Functions | |
| bool | toOriginPeer () const |
| Whether the next TCP/HTTP hop is an originserver cache_peer. | |
Public Attributes | |
| unsigned int | front_end_https = 0 |
| send "Front-End-Https: On" header (off/on/auto=2) | |
| bool | keepalive = false |
| whether the Squid-sent request offers to keep the connection persistent | |
| bool | forceClose = false |
| bool | only_if_cached = false |
| bool | handling1xx = false |
| Whether we are processing an HTTP 1xx control message. | |
| bool | serverSwitchedProtocols = false |
| bool | headers_parsed = false |
| bool | peering = false |
| Whether the next TCP hop is a cache_peer, including originserver. | |
| bool | tunneling = false |
| bool | toOrigin = false |
| bool | keepalive_broken = false |
| bool | request_sent = false |
| bool | chunked = false |
| reading a chunked response; TODO: rename | |
| bool | chunked_request = false |
| writing a chunked request | |
| bool | sentLastChunk = false |
| do not try to write last-chunk again | |
Definition at line 15 of file StateFlags.h.
|
inline |
Definition at line 56 of file StateFlags.h.
References peering, toOrigin, and tunneling.
Referenced by copyOneHeaderFromClientsideRequestToUpstreamRequest().
| bool Http::StateFlags::chunked = false |
Definition at line 60 of file StateFlags.h.
Referenced by HttpStateData::decodeAndWriteReplyBody(), HttpStateData::keepaliveAccounting(), HttpStateData::persistentConnStatus(), HttpStateData::processReplyBody(), and HttpStateData::processReplyHeader().
| bool Http::StateFlags::chunked_request = false |
Definition at line 61 of file StateFlags.h.
Referenced by copyOneHeaderFromClientsideRequestToUpstreamRequest(), HttpStateData::doneSendingRequestBody(), HttpStateData::getMoreRequestBody(), HttpStateData::httpBuildRequestHeader(), and HttpStateData::sendRequest().
| 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().
| unsigned int Http::StateFlags::front_end_https = 0 |
Definition at line 18 of file StateFlags.h.
Referenced by copyOneHeaderFromClientsideRequestToUpstreamRequest(), HttpStateData::httpBuildRequestHeader(), and HttpStateData::sendRequest().
| bool Http::StateFlags::handling1xx = false |
Definition at line 30 of file StateFlags.h.
Referenced by HttpStateData::continueAfterParsingHeader(), HttpStateData::handle1xx(), HttpStateData::proceedAfter1xx(), and HttpStateData::processReply().
| bool Http::StateFlags::headers_parsed = false |
Definition at line 37 of file StateFlags.h.
Referenced by HttpStateData::calcReadBufferCapacityLimit(), HttpStateData::continueAfterParsingHeader(), HttpStateData::processReply(), HttpStateData::processReplyBody(), HttpStateData::processReplyHeader(), and HttpStateData::truncateVirginBody().
| 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().
| bool Http::StateFlags::keepalive_broken = false |
Definition at line 58 of file StateFlags.h.
Referenced by HttpStateData::keepaliveAccounting(), and HttpStateData::processReplyBody().
| bool Http::StateFlags::only_if_cached = false |
Definition at line 27 of file StateFlags.h.
Referenced by HttpStateData::httpBuildRequestHeader(), and HttpStateData::sendRequest().
| 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().
| bool Http::StateFlags::request_sent = false |
Definition at line 59 of file StateFlags.h.
Referenced by HttpStateData::sendComplete(), and HttpStateData::statusIfComplete().
| bool Http::StateFlags::sentLastChunk = false |
Definition at line 62 of file StateFlags.h.
Referenced by HttpStateData::finishingChunkedRequest(), and HttpStateData::getMoreRequestBody().
| 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().
| bool Http::StateFlags::toOrigin = false |
Whether the next HTTP hop is an origin server, including an originserver cache_peer. The three possible cases are:
Definition at line 53 of file StateFlags.h.
Referenced by HttpStateData::HttpStateData(), HttpStateData::buildRequestPrefix(), HttpStateData::checkDateSkew(), copyOneHeaderFromClientsideRequestToUpstreamRequest(), HttpStateData::httpBuildRequestHeader(), httpFixupAuthentication(), and toOriginPeer().
| 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().