#include <HttpTunnelerAnswer.h>
Public Member Functions | |
TunnelerAnswer () | |
~TunnelerAnswer () | |
deletes squidError if it is still set More... | |
bool | positive () const |
Public Attributes | |
CbcPointer< ErrorState > | squidError |
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()
|
inline |
Definition at line 32 of file HttpTunnelerAnswer.h.
◆ ~TunnelerAnswer()
Http::TunnelerAnswer::~TunnelerAnswer | ( | ) |
Definition at line 14 of file HttpTunnelerAnswer.cc.
References CbcPointer< Cbc >::get(), and squidError.
Member Function Documentation
◆ positive()
|
inline |
Definition at line 35 of file HttpTunnelerAnswer.h.
References squidError.
Referenced by FwdState::tunnelEstablishmentDone(), and TunnelStateData::tunnelEstablishmentDone().
Member Data Documentation
◆ conn
Comm::ConnectionPointer Http::TunnelerAnswer::conn |
Definition at line 47 of file HttpTunnelerAnswer.h.
Referenced by Http::operator<<(), FwdState::tunnelEstablishmentDone(), and TunnelStateData::tunnelEstablishmentDone().
◆ leftovers
SBuf Http::TunnelerAnswer::leftovers |
Definition at line 42 of file HttpTunnelerAnswer.h.
Referenced by Http::operator<<(), FwdState::tunnelEstablishmentDone(), and TunnelStateData::tunnelEstablishmentDone().
◆ peerResponseStatus
StatusCode Http::TunnelerAnswer::peerResponseStatus = scNone |
Definition at line 45 of file HttpTunnelerAnswer.h.
Referenced by Http::operator<<(), and TunnelStateData::tunnelEstablishmentDone().
◆ squidError
CbcPointer<ErrorState> Http::TunnelerAnswer::squidError |
Definition at line 40 of file HttpTunnelerAnswer.h.
Referenced by ~TunnelerAnswer(), Http::operator<<(), positive(), FwdState::tunnelEstablishmentDone(), and TunnelStateData::tunnelEstablishmentDone().
The documentation for this class was generated from the following files:
- src/clients/HttpTunnelerAnswer.h
- src/clients/HttpTunnelerAnswer.cc