12 #include <glog/logging.h> 42 Type event,
bool upgrade =
false):
47 Type event,
size_t length):
59 Type event, std::unique_ptr<HTTPMessage> headers):
64 Type event, std::unique_ptr<folly::IOBuf> body):
69 Type event, std::unique_ptr<HTTPHeaders> trailers):
74 Type event, std::unique_ptr<HTTPException>
error):
113 std::unique_ptr<folly::IOBuf>
body_;
HTTPEvent(HTTPCodec::StreamID streamID, Type event, std::unique_ptr< folly::IOBuf > body)
UpgradeProtocol getUpgradeProtocol()
HTTPEvent(HTTPCodec::StreamID streamID, Type event, UpgradeProtocol protocol)
std::ostream & operator<<(std::ostream &os, const HeaderTable &table)
std::unique_ptr< HTTPException > error_
std::unique_ptr< folly::IOBuf > getBody()
constexpr detail::Map< Move > move
std::unique_ptr< HTTPException > getError()
std::unique_ptr< HTTPMessage > headers_
requires And< SemiMovable< VN >... > &&SemiMovable< E > auto error(E e)
HTTPCodec::StreamID getStreamID() const
UpgradeProtocol protocol_
std::unique_ptr< HTTPMessage > getHeaders()
std::unique_ptr< HTTPHeaders > getTrailers()
std::unique_ptr< folly::IOBuf > body_
HTTPEvent(HTTPCodec::StreamID streamID, Type event, bool upgrade=false)
HTTPEvent(HTTPCodec::StreamID streamID, Type event, std::unique_ptr< HTTPHeaders > trailers)
HTTPEvent(HTTPCodec::StreamID streamID, Type event, std::unique_ptr< HTTPMessage > headers)
std::unique_ptr< HTTPHeaders > trailers_
HTTPCodec::StreamID streamID_
HTTPEvent(HTTPCodec::StreamID streamID, Type event, size_t length)
size_t getChunkLength() const
HTTPEvent(HTTPCodec::StreamID streamID, Type event, std::unique_ptr< HTTPException > error)