proxygen
ProxyService::SessionWrapper Class Reference

#include <SessionWrapper.h>

Inheritance diagram for ProxyService::SessionWrapper:

Public Member Functions

 SessionWrapper (proxygen::HTTPUpstreamSession *session)
 
 ~SessionWrapper () override
 
proxygen::HTTPUpstreamSessionoperator-> () const
 
void onDestroy (const proxygen::HTTPSessionBase &) override
 

Private Attributes

proxygen::HTTPUpstreamSessionsession_ {nullptr}
 

Detailed Description

Definition at line 15 of file SessionWrapper.h.

Constructor & Destructor Documentation

ProxyService::SessionWrapper::SessionWrapper ( proxygen::HTTPUpstreamSession session)
inlineexplicit

Definition at line 20 of file SessionWrapper.h.

References session_, and proxygen::HTTPSessionBase::setInfoCallback().

21  : session_(session) {
23  }
proxygen::HTTPUpstreamSession * session_
void setInfoCallback(InfoCallback *callback)
ProxyService::SessionWrapper::~SessionWrapper ( )
inlineoverride

Definition at line 25 of file SessionWrapper.h.

References proxygen::HTTPUpstreamSession::drain(), and session_.

25  {
26  if (session_) {
27  session_->drain();
28  }
29  }
proxygen::HTTPUpstreamSession * session_

Member Function Documentation

void ProxyService::SessionWrapper::onDestroy ( const proxygen::HTTPSessionBase )
inlineoverride

Definition at line 36 of file SessionWrapper.h.

References session_.

36  {
37  session_ = nullptr;
38  }
proxygen::HTTPUpstreamSession * session_
proxygen::HTTPUpstreamSession* ProxyService::SessionWrapper::operator-> ( ) const
inline

Definition at line 31 of file SessionWrapper.h.

References session_.

31  {
32  return session_;
33  }
proxygen::HTTPUpstreamSession * session_

Member Data Documentation

proxygen::HTTPUpstreamSession* ProxyService::SessionWrapper::session_ {nullptr}
private

Definition at line 17 of file SessionWrapper.h.

Referenced by onDestroy(), operator->(), SessionWrapper(), and ~SessionWrapper().


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