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
bool only_if_cached = false
bool handling1xx = false
 we are ignoring or forwarding 1xx response More...
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

Definition at line 41 of file StateFlags.h.

References tunneling.

Referenced by copyOneHeaderFromClientsideRequestToUpstreamRequest().

Member Data Documentation

◆ abuse_detected

bool Http::StateFlags::abuse_detected = false

Definition at line 44 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 45 of file StateFlags.h.

Referenced by HttpStateData::sendComplete(), and HttpStateData::statusIfComplete().

◆ sentLastChunk

bool Http::StateFlags::sentLastChunk = false

◆ 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 38 of file StateFlags.h.

Referenced by HttpStateData::buildRequestPrefix(), HttpStateData::checkDateSkew(), copyOneHeaderFromClientsideRequestToUpstreamRequest(), HttpStateData::httpBuildRequestHeader(), httpFixupAuthentication(), and HttpStateData::HttpStateData().

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






Web Site Translations