Http::TunnelerAnswer Class Reference

#include <HttpTunnelerAnswer.h>

Collaboration diagram for Http::TunnelerAnswer:

Public Member Functions

 TunnelerAnswer ()
 ~TunnelerAnswer ()
 deletes squidError if it is still set More...
bool positive () const

Public Attributes

CbcPointer< ErrorStatesquidError
 problem details (or nil) More...
SBuf leftovers
 peer-generated bytes after a positive answer (or empty) More...
StatusCode peerResponseStatus = scNone
 the status code of the successfully parsed CONNECT response (or scNone) More...
Comm::ConnectionPointer conn

Detailed Description

Three mutually exclusive answers are possible:

  • Squid-generated error object (TunnelerAnswer::squidError);
  • peer-generated error message (TunnelerAnswer::peerError);
  • successful tunnel establishment (none of the above are present).

HTTP CONNECT tunnel setup results (supplied via a callback). The tunnel through the peer was established if and only if the error member is nil.

Definition at line 29 of file HttpTunnelerAnswer.h.

Constructor & Destructor Documentation

◆ TunnelerAnswer()

Http::TunnelerAnswer::TunnelerAnswer ( )

Definition at line 32 of file HttpTunnelerAnswer.h.

◆ ~TunnelerAnswer()

Http::TunnelerAnswer::~TunnelerAnswer ( )

Definition at line 14 of file

References CbcPointer< Cbc >::get(), and squidError.

Member Function Documentation

◆ positive()

bool Http::TunnelerAnswer::positive ( ) const

Member Data Documentation

◆ conn

◆ leftovers

SBuf Http::TunnelerAnswer::leftovers

◆ peerResponseStatus

StatusCode Http::TunnelerAnswer::peerResponseStatus = scNone

◆ squidError

The documentation for this class was generated from the following files:






Web Site Translations