19 class ResponseHandler;
36 void onRequest(std::unique_ptr<proxygen::HTTPMessage> headers)
39 void onBody(std::unique_ptr<folly::IOBuf> body) noexcept
override;
41 void onEOM() noexcept
override;
45 void requestComplete() noexcept
override;
49 void onEgressPaused() noexcept
override;
51 void onEgressResumed() noexcept
override;
53 void detachServerTransaction()
noexcept;
54 void onServerHeadersComplete(
55 std::unique_ptr<proxygen::HTTPMessage> msg)
noexcept;
56 void onServerBody(std::unique_ptr<folly::IOBuf> chain)
noexcept;
59 void onServerEgressPaused()
noexcept;
60 void onServerEgressResumed()
noexcept;
82 std::unique_ptr<proxygen::HTTPMessage> msg) noexcept
override {
86 void onBody(std::unique_ptr<folly::IOBuf> chain) noexcept
override {
91 std::unique_ptr<proxygen::HTTPHeaders> ) noexcept
override {
94 void onEOM() noexcept
override {
115 void connectSuccess() noexcept
override;
118 void getReadBuffer(
void** bufReturn,
size_t* lenReturn)
override;
119 void readDataAvailable(
size_t len) noexcept
override;
120 void readEOF() noexcept
override;
123 void writeSuccess() noexcept
override;
124 void writeErr(
size_t bytesWritten,
127 void abortDownstream();
128 bool checkForShutdown();
135 bool clientTerminated_{
false};
143 bool downstreamIngressPaused_{
false};
144 bool upstreamEgressPaused_{
false};
void onServerEgressPaused() noexcept
void onHeadersComplete(std::unique_ptr< proxygen::HTTPMessage > msg) noexceptoverride
void onTrailers(std::unique_ptr< proxygen::HTTPHeaders >) noexceptoverride
ServerTransactionHandler serverHandler_
std::shared_ptr< folly::AsyncSocket > upstreamSock_
ServerTransactionHandler(ProxyHandler &parent)
void onUpgrade(proxygen::UpgradeProtocol) noexceptoverride
constexpr detail::Map< Move > move
std::unique_ptr< SessionWrapper > session_
void onEgressPaused() noexceptoverride
void onEgressResumed() noexceptoverride
requires E e noexcept(noexcept(s.error(std::move(e))))
std::unique_ptr< proxygen::HTTPMessage > request_
requires And< SemiMovable< VN >... > &&SemiMovable< E > auto error(E e)
void onServerHeadersComplete(std::unique_ptr< proxygen::HTTPMessage > msg) noexcept
void onServerBody(std::unique_ptr< folly::IOBuf > chain) noexcept
proxygen::HTTPConnector connector_
static Options cacheChainLength()
void detachTransaction() noexceptoverride
void onServerEgressResumed() noexcept
void onServerError(const proxygen::HTTPException &error) noexcept
void onUpgrade(proxygen::UpgradeProtocol) noexceptoverride
void setTransaction(proxygen::HTTPTransaction *) noexceptoverride
void onEOM() noexceptoverride
void onBody(std::unique_ptr< folly::IOBuf > chain) noexceptoverride
void onServerEOM() noexcept
void onError(const proxygen::HTTPException &error) noexceptoverride
folly::Function< void()> parent
void detachServerTransaction() noexcept