17 #if defined(__clang__) && __clang_major__ >= 3 && __clang_minor__ >= 6 18 #pragma clang diagnostic push 19 #pragma clang diagnostic ignored "-Winconsistent-missing-override" 54 std::shared_ptr<folly::IOBuf>,
59 std::unique_ptr<folly::IOBuf> chain,
64 std::shared_ptr<folly::IOBuf>(chain.release()),
84 std::shared_ptr<folly::IOBuf>));
88 std::unique_ptr<folly::IOBuf> debugData)
override {
90 std::shared_ptr<folly::IOBuf>(debugData.release()));
103 std::shared_ptr<folly::IOBuf>));
107 std::unique_ptr<folly::IOBuf> authRequest)
override {
111 std::shared_ptr<folly::IOBuf>(authRequest.release()));
116 std::shared_ptr<folly::IOBuf>));
120 std::unique_ptr<folly::IOBuf> authenticator)
override {
124 std::shared_ptr<folly::IOBuf>(authenticator.release()));
147 std::shared_ptr<HTTPMessage>));
149 std::unique_ptr<HTTPMessage> msg)
override {
150 onHeadersComplete(stream, std::shared_ptr<HTTPMessage>(msg.release()));
153 std::shared_ptr<folly::IOBuf>,
uint8_t));
155 std::unique_ptr<folly::IOBuf> chain,
uint16_t padding)
override {
156 onBody(stream, std::shared_ptr<folly::IOBuf>(chain.release()), padding);
161 std::shared_ptr<HTTPHeaders>));
163 std::unique_ptr<HTTPHeaders> trailers)
override {
164 onTrailersComplete(stream,
165 std::shared_ptr<HTTPHeaders>(trailers.release()));
169 std::shared_ptr<HTTPException>,
bool));
172 bool newStream)
override {
183 std::unique_ptr<folly::IOBuf> debugData)
override {
184 onGoaway(lastGoodStreamID, code,
185 std::shared_ptr<folly::IOBuf>(debugData.release()));
195 void(
uint16_t, std::shared_ptr<folly::IOBuf>));
198 std::unique_ptr<folly::IOBuf> certRequestData)
override {
199 onCertificateRequest(
200 requestId, std::shared_ptr<folly::IOBuf>(certRequestData.release()));
204 std::unique_ptr<folly::IOBuf> certData)
override {
205 onCertificate(certId, std::shared_ptr<folly::IOBuf>(certData.release()));
216 #if defined(__clang__) && __clang_major__ >= 3 && __clang_minor__ >= 6 217 #pragma clang diagnostic pop
MOCK_METHOD3(generateChunkHeader, size_t(folly::IOBufQueue &, HTTPCodec::StreamID, size_t))
virtual const HTTPSettings * getIngressSettings() const
virtual size_t onIngress(const folly::IOBuf &buf)=0
MOCK_METHOD4(generateGoaway, size_t(folly::IOBufQueue &, StreamID, ErrorCode, std::shared_ptr< folly::IOBuf >))
virtual size_t generatePingReply(folly::IOBufQueue &, uint64_t)
virtual bool closeOnEgressComplete() const =0
virtual StreamID createStream()=0
virtual HTTPSettings * getEgressSettings()
spdy::GoawayStatusCode statusCode
virtual bool supportsSessionFlowControl() const
MOCK_CONST_METHOD1(mapPriorityToDependency, HTTPCodec::StreamID(uint8_t))
virtual bool supportsPushTransactions() const =0
virtual void generateHeader(folly::IOBufQueue &writeBuf, StreamID stream, const HTTPMessage &msg, bool eom=false, HTTPHeaderSize *size=nullptr)=0
virtual void setCallback(Callback *callback)=0
size_t generateBody(folly::IOBufQueue &writeBuf, HTTPCodec::StreamID stream, std::unique_ptr< folly::IOBuf > chain, folly::Optional< uint8_t > padding, bool eom) override
virtual size_t generateChunkTerminator(folly::IOBufQueue &writeBuf, StreamID stream)=0
virtual CodecProtocol getProtocol() const =0
MOCK_CONST_METHOD0(getProtocol, CodecProtocol())
size_t generateCertificateRequest(folly::IOBufQueue &writeBuf, uint16_t requestId, std::unique_ptr< folly::IOBuf > authRequest) override
virtual void generatePushPromise(folly::IOBufQueue &, StreamID, const HTTPMessage &, StreamID, bool, HTTPHeaderSize *)
MOCK_METHOD6(generatePushPromise, void(folly::IOBufQueue &, HTTPCodec::StreamID, const HTTPMessage &, HTTPCodec::StreamID, bool eom, HTTPHeaderSize *))
virtual size_t generateRstStream(folly::IOBufQueue &writeBuf, StreamID stream, ErrorCode code)=0
virtual size_t generateTrailers(folly::IOBufQueue &writeBuf, StreamID stream, const HTTPHeaders &trailers)=0
MOCK_METHOD5(generateHeader, void(folly::IOBufQueue &, HTTPCodec::StreamID, const HTTPMessage &, bool eom, HTTPHeaderSize *))
virtual bool isWaitingToDrain() const =0
MOCK_METHOD0(createStream, HTTPCodec::StreamID())
void onCertificateRequest(uint16_t requestId, std::unique_ptr< folly::IOBuf > certRequestData) override
virtual void onIngressEOF()=0
virtual const std::string & getUserAgent() const =0
void writeBuf(const Buf &buf, folly::io::Appender &out)
virtual bool supportsStreamFlowControl() const
void onGoaway(uint64_t lastGoodStreamID, ErrorCode code, std::unique_ptr< folly::IOBuf > debugData) override
virtual size_t generateSettingsAck(folly::IOBufQueue &)
virtual size_t addPriorityNodes(PriorityQueue &, folly::IOBufQueue &, uint8_t)
virtual uint32_t getDefaultWindowSize() const
virtual size_t generateChunkHeader(folly::IOBufQueue &writeBuf, StreamID stream, size_t length)=0
virtual StreamID mapPriorityToDependency(uint8_t) const
void onError(HTTPCodec::StreamID stream, const HTTPException &exc, bool newStream) override
virtual void enableDoubleGoawayDrain()
virtual size_t generateEOM(folly::IOBufQueue &writeBuf, StreamID stream)=0
size_t generateCertificate(folly::IOBufQueue &writeBuf, uint16_t certId, std::unique_ptr< folly::IOBuf > authenticator) override
std::tuple< uint32_t, bool, uint8_t > HTTPPriority
std::vector< HTTPSetting > SettingsList
void onHeadersComplete(HTTPCodec::StreamID stream, std::unique_ptr< HTTPMessage > msg) override
size_t generateGoaway(folly::IOBufQueue &writeBuf, StreamID lastStream, ErrorCode statusCode, std::unique_ptr< folly::IOBuf > debugData) override
virtual bool isReusable() const =0
virtual size_t generateWindowUpdate(folly::IOBufQueue &, StreamID, uint32_t)
virtual size_t generateSettings(folly::IOBufQueue &)
virtual bool isBusy() const =0
void onCertificate(uint16_t certId, std::unique_ptr< folly::IOBuf > certData) override
virtual void setParserPaused(bool paused)=0
void onBody(HTTPCodec::StreamID stream, std::unique_ptr< folly::IOBuf > chain, uint16_t padding) override
virtual size_t generatePingRequest(folly::IOBufQueue &)
virtual bool supportsParallelRequests() const =0
MOCK_METHOD1(setCallback, void(Callback *))
virtual TransportDirection getTransportDirection() const =0
void onTrailersComplete(HTTPCodec::StreamID stream, std::unique_ptr< HTTPHeaders > trailers) override
MOCK_METHOD2(generateChunkTerminator, size_t(folly::IOBufQueue &, HTTPCodec::StreamID))