Http::StateFlags Class Reference

#include <StateFlags.h>

Collaboration diagram for Http::StateFlags:

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()

bool Http::StateFlags::toOriginPeer ( ) const
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

◆ chunked_request

◆ do_next_read

◆ 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

◆ handling1xx

bool Http::StateFlags::handling1xx = false

◆ headers_parsed

◆ keepalive

◆ keepalive_broken

bool Http::StateFlags::keepalive_broken = false

◆ only_if_cached

bool Http::StateFlags::only_if_cached = false

◆ peering

◆ 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

◆ 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:

  1. a direct TCP/HTTP connection to an origin server,
  2. a direct TCP/HTTP connection to an originserver cache_peer, and
  3. 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:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors