12 #include <boost/algorithm/string.hpp> 46 if (!boost::iequals(expectation,
"100-continue")) {
50 .
status(417,
"Expectation Failed")
77 std::unique_ptr<HTTPHeaders> )
noexcept {
104 .
status(408,
"Request Timeout")
115 .
status(400,
"Bad Request")
185 pushHandlerAdaptor->setTransaction(pushTxn);
186 return pushHandlerAdaptor;
void onTrailers(std::unique_ptr< HTTPHeaders > trailers) noexceptoverride
virtual void resumeIngress()
void onEOM() noexceptoverride
void setTransaction(HTTPTransaction *txn) noexceptoverride
ResponseBuilder & status(uint16_t code, const std::string &message)
void sendAbort() noexceptoverride
RequestHandlerAdaptor(RequestHandler *requestHandler)
virtual ExMessageHandler * getExHandler() noexcept
virtual void setResponseHandler(ResponseHandler *handler) noexcept
void pauseIngress() noexceptoverride
virtual void onEOM() noexcept=0
void onError(const HTTPException &error) noexceptoverride
void detachTransaction() noexceptoverride
void sendHeaders(HTTPMessage &msg) noexceptoverride
constexpr detail::Map< Move > move
const wangle::TransportInfo & getSetupTransportInfo() const noexcept
HTTPTransaction * getTransaction() const noexcept
virtual bool canHandleExpect() noexcept
void sendChunkTerminator() noexceptoverride
ResponseHandler * newPushedResponse(PushHandler *pushHandler) noexceptoverride
const wangle::TransportInfo & getSetupTransportInfo() const noexceptoverride
ResponseHandler * newExMessage(ExMessageHandler *exHandler, bool unidirectional) noexceptoverride
virtual void requestComplete() noexcept=0
requires E e noexcept(noexcept(s.error(std::move(e))))
void onHeadersComplete(std::unique_ptr< HTTPMessage > msg) noexceptoverride
requires And< SemiMovable< VN >... > &&SemiMovable< E > auto error(E e)
void getCurrentTransportInfo(wangle::TransportInfo *tinfo) const
void resumeIngress() noexceptoverride
void handler(int, siginfo_t *, void *)
void onChunkHeader(size_t length) noexceptoverride
void sendEOM() noexceptoverride
virtual void onEgressPaused() noexcept
void onExTransaction(HTTPTransaction *txn) noexceptoverride
virtual HTTPTransaction * newExTransaction(HTTPTransactionHandler *handler, bool unidirectional=false)
virtual void onRequest(std::unique_ptr< HTTPMessage > headers) noexcept=0
virtual void sendBody(std::unique_ptr< folly::IOBuf > body)
virtual void sendHeaders(const HTTPMessage &headers)
virtual bool canSendHeaders() const
virtual void pauseIngress()
void onUpgrade(UpgradeProtocol protocol) noexceptoverride
void refreshTimeout() noexceptoverride
virtual HTTPTransaction * newPushedTransaction(HTTPPushTransactionHandler *handler)
void sendBody(std::unique_ptr< folly::IOBuf > body) noexceptoverride
void getCurrentTransportInfo(wangle::TransportInfo *tinfo) const override
void onEgressPaused() noexceptoverride
void onEgressResumed() noexceptoverride
void onBody(std::unique_ptr< folly::IOBuf > chain) noexceptoverride
ResponseBuilder & closeConnection()
RequestHandler * upstream_
virtual void sendChunkTerminator()
void setError(ProxygenError err) noexcept
virtual void onUpgrade(proxygen::UpgradeProtocol prot) noexcept=0
virtual void onError(ProxygenError err) noexcept=0
virtual void onEgressResumed() noexcept
void onChunkComplete() noexceptoverride
virtual void onBody(std::unique_ptr< folly::IOBuf > body) noexcept=0
void sendChunkHeader(size_t len) noexceptoverride
virtual void sendChunkHeader(size_t length)