proxygen
proxygen::MockHTTPPushHandler Class Reference

#include <HTTPSessionMocks.h>

Inheritance diagram for proxygen::MockHTTPPushHandler:
proxygen::HTTPHandlerBase proxygen::HTTPPushTransactionHandler proxygen::HTTPTransactionHandler

Public Member Functions

 MockHTTPPushHandler ()
 
 MockHTTPPushHandler (HTTPTransaction &txn, HTTPMessage *msg, const folly::SocketAddress &)
 
 GMOCK_METHOD1_ (, noexcept,, setTransaction, void(HTTPTransaction *txn))
 
 GMOCK_METHOD0_ (, noexcept,, detachTransaction, void())
 
 GMOCK_METHOD1_ (, noexcept,, onError, void(const HTTPException &error))
 
 GMOCK_METHOD1_ (, noexcept,, onGoaway, void(ErrorCode))
 
 GMOCK_METHOD0_ (, noexcept,, onEgressPaused, void())
 
 GMOCK_METHOD0_ (, noexcept,, onEgressResumed, void())
 
void sendPushHeaders (const std::string &path, const std::string &host, uint32_t content_length, http2::PriorityUpdate pri)
 
- Public Member Functions inherited from proxygen::HTTPHandlerBase
 HTTPHandlerBase ()
 
 HTTPHandlerBase (HTTPTransaction *txn, HTTPMessage *msg)
 
void terminate ()
 
void sendRequest ()
 
void sendRequest (HTTPMessage req)
 
void sendHeaders (uint32_t code, uint32_t content_length, bool keepalive=true, HeaderMap headers=HeaderMap())
 
void sendReply ()
 
void sendReplyCode (uint32_t code)
 
void sendBody (uint32_t content_length)
 
void sendBodyWithLastByteTracking (uint32_t content_length)
 
void sendReplyWithBody (uint32_t code, uint32_t content_length, bool keepalive=true, bool sendEOM=true, bool hasTrailers=false)
 
void sendEOM ()
 
void sendChunkedReplyWithBody (uint32_t code, uint32_t content_length, uint32_t chunkSize, bool hasTrailers, bool sendEOM=true)
 
- Public Member Functions inherited from proxygen::HTTPPushTransactionHandler
 ~HTTPPushTransactionHandler () override
 
void onHeadersComplete (std::unique_ptr< HTTPMessage >) noexceptfinal
 
void onBody (std::unique_ptr< folly::IOBuf >) noexceptfinal
 
void onChunkHeader (size_t) noexceptfinal
 
void onChunkComplete () noexceptfinal
 
void onTrailers (std::unique_ptr< HTTPHeaders >) noexceptfinal
 
void onEOM () noexceptfinal
 
void onUpgrade (UpgradeProtocol) noexceptfinal
 
void onPushedTransaction (HTTPTransaction *) noexceptfinal
 
- Public Member Functions inherited from proxygen::HTTPTransactionHandler
virtual void setTransaction (HTTPTransaction *txn) noexcept=0
 
virtual void detachTransaction () noexcept=0
 
virtual void onError (const HTTPException &error) noexcept=0
 
virtual void onEgressPaused () noexcept=0
 
virtual void onEgressResumed () noexcept=0
 
virtual void onExTransaction (HTTPTransaction *) noexcept
 
virtual void onGoaway (ErrorCode) noexcept
 
virtual ~HTTPTransactionHandler ()
 

Additional Inherited Members

- Public Types inherited from proxygen::HTTPHandlerBase
using HeaderMap = std::map< std::string, std::string >
 
- Public Attributes inherited from proxygen::HTTPHandlerBase
HTTPTransactiontxn_ {nullptr}
 
std::shared_ptr< HTTPMessagemsg_
 

Detailed Description

Definition at line 321 of file HTTPSessionMocks.h.

Constructor & Destructor Documentation

proxygen::MockHTTPPushHandler::MockHTTPPushHandler ( )
inline

Definition at line 325 of file HTTPSessionMocks.h.

325  {
326  }
proxygen::MockHTTPPushHandler::MockHTTPPushHandler ( HTTPTransaction txn,
HTTPMessage msg,
const folly::SocketAddress  
)
inline

Definition at line 327 of file HTTPSessionMocks.h.

References GMOCK_NOEXCEPT_METHOD0, and GMOCK_NOEXCEPT_METHOD1.

330  : HTTPHandlerBase(&txn, msg) {
331  }

Member Function Documentation

proxygen::MockHTTPPushHandler::GMOCK_METHOD0_ ( noexcept  ,
detachTransaction  ,
void()   
)
proxygen::MockHTTPPushHandler::GMOCK_METHOD0_ ( noexcept  ,
onEgressPaused  ,
void()   
)
proxygen::MockHTTPPushHandler::GMOCK_METHOD0_ ( noexcept  ,
onEgressResumed  ,
void()   
)
proxygen::MockHTTPPushHandler::GMOCK_METHOD1_ ( noexcept  ,
setTransaction  ,
void(HTTPTransaction *txn)   
)
proxygen::MockHTTPPushHandler::GMOCK_METHOD1_ ( noexcept  ,
onError  ,
void(const HTTPException &error)   
)
proxygen::MockHTTPPushHandler::GMOCK_METHOD1_ ( noexcept  ,
onGoaway  ,
void(ErrorCode  
)
void proxygen::MockHTTPPushHandler::sendPushHeaders ( const std::string path,
const std::string host,
uint32_t  content_length,
http2::PriorityUpdate  pri 
)
inline

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