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 to keep the connection persistent More...
 
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 49 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 52 of file StateFlags.h.

Referenced by HttpStateData::handleMoreRequestBodyAvailable().

◆ chunked

◆ chunked_request

◆ do_next_read

◆ front_end_https

unsigned int Http::StateFlags::front_end_https = 0

◆ handling1xx

◆ 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 53 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 28 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 46 of file StateFlags.h.

Referenced by HttpStateData::buildRequestPrefix(), HttpStateData::checkDateSkew(), copyOneHeaderFromClientsideRequestToUpstreamRequest(), HttpStateData::httpBuildRequestHeader(), httpFixupAuthentication(), HttpStateData::HttpStateData(), 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 37 of file StateFlags.h.

Referenced by httpFixupAuthentication(), HttpStateData::HttpStateData(), 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