proxygen
|
#include <HTTPSessionMocks.h>
Public Types | |
using | HeaderMap = std::map< std::string, std::string > |
Public Member Functions | |
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 Attributes | |
HTTPTransaction * | txn_ {nullptr} |
std::shared_ptr< HTTPMessage > | msg_ |
Definition at line 25 of file HTTPSessionMocks.h.
Definition at line 47 of file HTTPSessionMocks.h.
|
inline |
Definition at line 27 of file HTTPSessionMocks.h.
|
inline |
Definition at line 29 of file HTTPSessionMocks.h.
|
inline |
Definition at line 73 of file HTTPSessionMocks.h.
References folly::IOBuf::copyBuffer(), min, proxygen::HTTPTransaction::sendBody(), txn_, and uint32_t.
Referenced by sendBodyWithLastByteTracking(), sendReplyWithBody(), and TEST_F().
|
inline |
Definition at line 83 of file HTTPSessionMocks.h.
References sendBody(), proxygen::HTTPTransaction::setLastByteFlushedTrackingEnabled(), and txn_.
|
inline |
Definition at line 109 of file HTTPSessionMocks.h.
References proxygen::HTTPHeaders::add(), folly::IOBuf::copyBuffer(), min, proxygen::HTTPTransaction::sendBody(), proxygen::HTTPTransaction::sendChunkHeader(), proxygen::HTTPTransaction::sendChunkTerminator(), sendEOM(), proxygen::HTTPTransaction::sendEOM(), proxygen::HTTPTransaction::sendHeaders(), proxygen::HTTPTransaction::sendTrailers(), proxygen::HTTPMessage::setHTTPVersion(), proxygen::HTTPMessage::setIsChunked(), proxygen::HTTPMessage::setStatusCode(), txn_, and uint32_t.
|
inline |
Definition at line 105 of file HTTPSessionMocks.h.
References proxygen::HTTPTransaction::sendEOM(), and txn_.
Referenced by sendChunkedReplyWithBody(), and sendReplyWithBody().
|
inline |
Definition at line 48 of file HTTPSessionMocks.h.
References proxygen::HTTPHeaders::add(), proxygen::HTTPMessage::getHeaders(), proxygen::HTTP_HEADER_CONTENT_LENGTH, proxygen::HTTPTransaction::sendHeaders(), proxygen::HTTPMessage::setHTTPVersion(), proxygen::HTTPMessage::setStatusCode(), proxygen::HTTPMessage::setWantsKeepalive(), and txn_.
Referenced by sendReplyCode(), sendReplyWithBody(), and TEST_F().
|
inline |
Definition at line 64 of file HTTPSessionMocks.h.
References sendReplyCode().
|
inline |
Definition at line 68 of file HTTPSessionMocks.h.
References proxygen::HTTPTransaction::sendEOM(), sendHeaders(), and txn_.
Referenced by sendReply().
|
inline |
Definition at line 88 of file HTTPSessionMocks.h.
References proxygen::HTTPHeaders::add(), sendBody(), sendEOM(), proxygen::HTTPTransaction::sendEOM(), sendHeaders(), proxygen::HTTPTransaction::sendTrailers(), and txn_.
Referenced by TEST_F().
|
inline |
Definition at line 37 of file HTTPSessionMocks.h.
References proxygen::getGetRequest().
Referenced by TEST_F().
|
inline |
Definition at line 41 of file HTTPSessionMocks.h.
References proxygen::HTTPTransaction::sendEOM(), proxygen::HTTPTransaction::sendHeaders(), and txn_.
|
inline |
Definition at line 33 of file HTTPSessionMocks.h.
References proxygen::HTTPTransaction::sendAbort(), and txn_.
Referenced by HTTPDownstreamTest< SPDY3_1CodecPair >::onEOMTerminateHandlerExpectShutdown().
std::shared_ptr<HTTPMessage> proxygen::HTTPHandlerBase::msg_ |
Definition at line 139 of file HTTPSessionMocks.h.
HTTPTransaction* proxygen::HTTPHandlerBase::txn_ {nullptr} |
Definition at line 138 of file HTTPSessionMocks.h.
Referenced by proxygen::MockHTTPHandler::expectTransaction(), sendBody(), sendBodyWithLastByteTracking(), sendChunkedReplyWithBody(), sendEOM(), sendHeaders(), proxygen::MockHTTPPushHandler::sendPushHeaders(), sendReplyCode(), sendReplyWithBody(), sendRequest(), terminate(), and TEST_F().