Http::TunnelerAnswer Class Reference

#include <HttpTunnelerAnswer.h>

Inheritance diagram for Http::TunnelerAnswer:
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...
 

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

Definition at line 32 of file HttpTunnelerAnswer.h.

References ~TunnelerAnswer().

◆ ~TunnelerAnswer()

Http::TunnelerAnswer::~TunnelerAnswer ( )

Definition at line 14 of file HttpTunnelerAnswer.cc.

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

Referenced by TunnelerAnswer().

Member Function Documentation

◆ positive()

bool Http::TunnelerAnswer::positive ( ) const
inline

Member Data Documentation

◆ leftovers

SBuf Http::TunnelerAnswer::leftovers

◆ peerResponseStatus

StatusCode Http::TunnelerAnswer::peerResponseStatus = scNone

◆ squidError


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors