proxygen
proxygen::PassThroughHTTPCodecFilter Class Reference

#include <HTTPCodecFilter.h>

Inheritance diagram for proxygen::PassThroughHTTPCodecFilter:
proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp > T1 T2 proxygen::FilterChain< HTTPCodec, HTTPCodec::Callback, PassThroughHTTPCodecFilter,&HTTPCodec::setCallback, true > proxygen::FlowControlFilter proxygen::HTTPChecks proxygen::HTTPCodecPrinter

Public Member Functions

 PassThroughHTTPCodecFilter (bool calls=true, bool callbacks=true)
 
void onMessageBegin (StreamID stream, HTTPMessage *msg) override
 
void onPushMessageBegin (StreamID stream, StreamID assocStream, HTTPMessage *msg) override
 
void onExMessageBegin (StreamID stream, StreamID controlStream, bool unidirectional, HTTPMessage *msg) override
 
void onHeadersComplete (StreamID stream, std::unique_ptr< HTTPMessage > msg) override
 
void onBody (StreamID stream, std::unique_ptr< folly::IOBuf > chain, uint16_t padding) override
 
void onChunkHeader (StreamID stream, size_t length) override
 
void onChunkComplete (StreamID stream) override
 
void onTrailersComplete (StreamID stream, std::unique_ptr< HTTPHeaders > trailers) override
 
void onMessageComplete (StreamID stream, bool upgrade) override
 
void onFrameHeader (StreamID stream_id, uint8_t flags, uint64_t length, uint8_t type, uint16_t version=0) override
 
void onError (StreamID stream, const HTTPException &error, bool newStream=false) override
 
void onAbort (StreamID stream, ErrorCode code) override
 
void onGoaway (uint64_t lastGoodStreamID, ErrorCode code, std::unique_ptr< folly::IOBuf > debugData=nullptr) override
 
void onPingRequest (uint64_t uniqueID) override
 
void onPingReply (uint64_t uniqueID) override
 
void onWindowUpdate (StreamID stream, uint32_t amount) override
 
void onSettings (const SettingsList &settings) override
 
void onSettingsAck () override
 
void onPriority (StreamID stream, const HTTPMessage::HTTPPriority &pri) override
 
bool onNativeProtocolUpgrade (StreamID stream, CodecProtocol protocol, const std::string &protocolString, HTTPMessage &msg) override
 
void onGenerateFrameHeader (StreamID streamID, uint8_t type, uint64_t length, uint16_t version) override
 
void onCertificateRequest (uint16_t requestId, std::unique_ptr< folly::IOBuf > authRequest) override
 
void onCertificate (uint16_t certId, std::unique_ptr< folly::IOBuf > authenticator) override
 
uint32_t numOutgoingStreams () const override
 
uint32_t numIncomingStreams () const override
 
HPACKTableInfo getHPACKTableInfo () const override
 
CodecProtocol getProtocol () const override
 
const std::stringgetUserAgent () const override
 
TransportDirection getTransportDirection () const override
 
bool supportsStreamFlowControl () const override
 
bool supportsSessionFlowControl () const override
 
StreamID createStream () override
 
void setCallback (HTTPCodec::Callback *callback) override
 
bool isBusy () const override
 
void setParserPaused (bool paused) override
 
size_t onIngress (const folly::IOBuf &buf) override
 
void onIngressEOF () override
 
bool onIngressUpgradeMessage (const HTTPMessage &msg) override
 
bool isReusable () const override
 
bool isWaitingToDrain () const override
 
bool closeOnEgressComplete () const override
 
bool supportsParallelRequests () const override
 
bool supportsPushTransactions () const override
 
size_t generateConnectionPreface (folly::IOBufQueue &writeBuf) override
 
void generateHeader (folly::IOBufQueue &writeBuf, StreamID stream, const HTTPMessage &msg, bool eom, HTTPHeaderSize *size) override
 
void generatePushPromise (folly::IOBufQueue &writeBuf, StreamID stream, const HTTPMessage &msg, StreamID assocStream, bool eom, HTTPHeaderSize *size) override
 
void generateExHeader (folly::IOBufQueue &writeBuf, StreamID stream, const HTTPMessage &msg, const HTTPCodec::ExAttributes &exAttributes, bool eom, HTTPHeaderSize *size) override
 
size_t generateBody (folly::IOBufQueue &writeBuf, StreamID stream, std::unique_ptr< folly::IOBuf > chain, folly::Optional< uint8_t > padding, bool eom) override
 
size_t generateChunkHeader (folly::IOBufQueue &writeBuf, StreamID stream, size_t length) override
 
size_t generateChunkTerminator (folly::IOBufQueue &writeBuf, StreamID stream) override
 
size_t generateTrailers (folly::IOBufQueue &writeBuf, StreamID stream, const HTTPHeaders &trailers) override
 
size_t generateEOM (folly::IOBufQueue &writeBuf, StreamID stream) override
 
size_t generateRstStream (folly::IOBufQueue &writeBuf, StreamID stream, ErrorCode statusCode) override
 
size_t generateGoaway (folly::IOBufQueue &writeBuf, StreamID lastStream, ErrorCode statusCode, std::unique_ptr< folly::IOBuf > debugData=nullptr) override
 
size_t generatePingRequest (folly::IOBufQueue &writeBuf) override
 
size_t generatePingReply (folly::IOBufQueue &writeBuf, uint64_t uniqueID) override
 
size_t generateSettings (folly::IOBufQueue &writeBuf) override
 
size_t generateSettingsAck (folly::IOBufQueue &writeBuf) override
 
size_t generateWindowUpdate (folly::IOBufQueue &writeBuf, StreamID stream, uint32_t delta) override
 
size_t generatePriority (folly::IOBufQueue &writeBuf, StreamID stream, const HTTPMessage::HTTPPriority &pri) override
 
size_t generateCertificateRequest (folly::IOBufQueue &writeBuf, uint16_t requestId, std::unique_ptr< folly::IOBuf > chain) override
 
size_t generateCertificate (folly::IOBufQueue &writeBuf, uint16_t certId, std::unique_ptr< folly::IOBuf > certData) override
 
HTTPSettingsgetEgressSettings () override
 
const HTTPSettingsgetIngressSettings () const override
 
void setHeaderCodecStats (HeaderCodec::Stats *stats) override
 
void enableDoubleGoawayDrain () override
 
HTTPCodec::StreamID getLastIncomingStreamID () const override
 
uint32_t getDefaultWindowSize () const override
 
size_t addPriorityNodes (PriorityQueue &queue, folly::IOBufQueue &writeBuf, uint8_t maxLevel) override
 
StreamID mapPriorityToDependency (uint8_t priority) const override
 
int8_t mapDependencyToPriority (StreamID parent) const override
 
- Public Member Functions inherited from proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >
 GenericFilter (bool calls, bool callbacks)
 
 ~GenericFilter () override
 
void append (Filter *nextFilter)
 

Additional Inherited Members

- Public Types inherited from proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >
using Filter = GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >
 
- Public Attributes inherited from proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >
const bool kWantsCalls_
 
const bool kWantsCallbacks_
 
- Protected Member Functions inherited from proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >
void setCallbackInternal (T2 *cb)
 
void drop ()
 
- Protected Attributes inherited from proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >
T1call_ {nullptr}
 
T2callback_ {nullptr}
 

Detailed Description

An implementation of HTTPCodecFilter that passes through all calls. This is useful to subclass if you aren't interested in intercepting every function. See HTTPCodec.h for documentation on these methods.

Definition at line 28 of file HTTPCodecFilter.h.

Constructor & Destructor Documentation

proxygen::PassThroughHTTPCodecFilter::PassThroughHTTPCodecFilter ( bool  calls = true,
bool  callbacks = true 
)
inlineexplicit

By default, the filter gets both calls and callbacks

Definition at line 33 of file HTTPCodecFilter.h.

References addPriorityNodes(), closeOnEgressComplete(), createStream(), enableDoubleGoawayDrain(), folly::pushmi::operators::error(), generateBody(), generateCertificate(), generateCertificateRequest(), generateChunkHeader(), generateChunkTerminator(), generateConnectionPreface(), generateEOM(), generateExHeader(), generateGoaway(), generateHeader(), generatePingReply(), generatePingRequest(), generatePriority(), generatePushPromise(), generateRstStream(), generateSettings(), generateSettingsAck(), generateTrailers(), generateWindowUpdate(), getDefaultWindowSize(), getEgressSettings(), getHPACKTableInfo(), getIngressSettings(), getLastIncomingStreamID(), getProtocol(), getTransportDirection(), getUserAgent(), int8_t, isBusy(), isReusable(), isWaitingToDrain(), mapDependencyToPriority(), mapPriorityToDependency(), numIncomingStreams(), numOutgoingStreams(), onAbort(), onBody(), onCertificate(), onCertificateRequest(), onChunkComplete(), onChunkHeader(), onError(), onExMessageBegin(), onFrameHeader(), onGenerateFrameHeader(), onGoaway(), onHeadersComplete(), onIngress(), onIngressEOF(), onIngressUpgradeMessage(), onMessageBegin(), onMessageComplete(), onNativeProtocolUpgrade(), onPingReply(), onPingRequest(), onPriority(), onPushMessageBegin(), onSettings(), onSettingsAck(), onTrailersComplete(), onWindowUpdate(), parent, setCallback(), proxygen::HTTPCodec::setCallback(), setHeaderCodecStats(), setParserPaused(), settings, folly::size(), statusCode, streamID, string, supportsParallelRequests(), supportsPushTransactions(), supportsSessionFlowControl(), supportsStreamFlowControl(), type, uint16_t, uint32_t, uint64_t, uint8_t, version, and fizz::detail::writeBuf().

34  :
35  HTTPCodecFilter(calls, callbacks) {}
GenericFilter< HTTPCodec, HTTPCodec::Callback,&HTTPCodec::setCallback, true > HTTPCodecFilter

Member Function Documentation

size_t proxygen::PassThroughHTTPCodecFilter::addPriorityNodes ( PriorityQueue &  queue,
folly::IOBufQueue writeBuf,
uint8_t  maxLevel 
)
override

Definition at line 386 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

389  {
390  return call_->addPriorityNodes(queue, writeBuf, maxLevel);
391 }
bool proxygen::PassThroughHTTPCodecFilter::closeOnEgressComplete ( ) const
override

Definition at line 214 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

214  {
215  return call_->closeOnEgressComplete();
216 }
HTTPCodec::StreamID proxygen::PassThroughHTTPCodecFilter::createStream ( )
override

Definition at line 177 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

177  {
178  return call_->createStream();
179 }
void proxygen::PassThroughHTTPCodecFilter::enableDoubleGoawayDrain ( )
override

Definition at line 367 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

367  {
368  return call_->enableDoubleGoawayDrain();
369 }
size_t proxygen::PassThroughHTTPCodecFilter::generateBody ( folly::IOBufQueue writeBuf,
StreamID  stream,
std::unique_ptr< folly::IOBuf chain,
folly::Optional< uint8_t padding,
bool  eom 
)
override

Definition at line 260 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_, and folly::gen::move.

Referenced by PassThroughHTTPCodecFilter().

265  {
266  return call_->generateBody(writeBuf, stream, std::move(chain), padding,
267  eom);
268 }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
size_t proxygen::PassThroughHTTPCodecFilter::generateCertificate ( folly::IOBufQueue writeBuf,
uint16_t  certId,
std::unique_ptr< folly::IOBuf certData 
)
override

Definition at line 352 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_, and folly::gen::move.

Referenced by PassThroughHTTPCodecFilter().

355  {
356  return call_->generateCertificate(writeBuf, certId, std::move(certData));
357 }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
size_t proxygen::PassThroughHTTPCodecFilter::generateCertificateRequest ( folly::IOBufQueue writeBuf,
uint16_t  requestId,
std::unique_ptr< folly::IOBuf chain 
)
override

Definition at line 344 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_, and folly::gen::move.

Referenced by PassThroughHTTPCodecFilter().

347  {
348  return call_->generateCertificateRequest(
349  writeBuf, requestId, std::move(chain));
350 }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
size_t proxygen::PassThroughHTTPCodecFilter::generateChunkHeader ( folly::IOBufQueue writeBuf,
StreamID  stream,
size_t  length 
)
override

Definition at line 270 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

273  {
274  return call_->generateChunkHeader(writeBuf, stream, length);
275 }
size_t proxygen::PassThroughHTTPCodecFilter::generateChunkTerminator ( folly::IOBufQueue writeBuf,
StreamID  stream 
)
override

Definition at line 277 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

279  {
280  return call_->generateChunkTerminator(writeBuf, stream);
281 }
size_t proxygen::PassThroughHTTPCodecFilter::generateConnectionPreface ( folly::IOBufQueue writeBuf)
override

Definition at line 226 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

227  {
228  return call_->generateConnectionPreface(writeBuf);
229 }
size_t proxygen::PassThroughHTTPCodecFilter::generateEOM ( folly::IOBufQueue writeBuf,
StreamID  stream 
)
override

Definition at line 290 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

291  {
292  return call_->generateEOM(writeBuf, stream);
293 }
void proxygen::PassThroughHTTPCodecFilter::generateExHeader ( folly::IOBufQueue writeBuf,
StreamID  stream,
const HTTPMessage msg,
const HTTPCodec::ExAttributes exAttributes,
bool  eom,
HTTPHeaderSize size 
)
override

Definition at line 249 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

255  {
256  return call_->generateExHeader(writeBuf, stream, msg, exAttributes,
257  eom, size);
258 }
constexpr auto size(C const &c) -> decltype(c.size())
Definition: Access.h:45
size_t proxygen::PassThroughHTTPCodecFilter::generateGoaway ( folly::IOBufQueue writeBuf,
StreamID  lastStream,
ErrorCode  statusCode,
std::unique_ptr< folly::IOBuf debugData = nullptr 
)
override

Definition at line 302 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_, and folly::gen::move.

Referenced by PassThroughHTTPCodecFilter().

306  {
307  return call_->generateGoaway(writeBuf, lastStream, statusCode,
308  std::move(debugData));
309 }
spdy::GoawayStatusCode statusCode
Definition: SPDYCodec.cpp:110
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
void proxygen::PassThroughHTTPCodecFilter::generateHeader ( folly::IOBufQueue writeBuf,
StreamID  stream,
const HTTPMessage msg,
bool  eom,
HTTPHeaderSize size 
)
override

Definition at line 232 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

236  {
237  return call_->generateHeader(writeBuf, stream, msg, eom, size);
238 }
constexpr auto size(C const &c) -> decltype(c.size())
Definition: Access.h:45
size_t proxygen::PassThroughHTTPCodecFilter::generatePingReply ( folly::IOBufQueue writeBuf,
uint64_t  uniqueID 
)
override

Definition at line 316 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

318  {
319  return call_->generatePingReply(writeBuf, uniqueID);
320 }
size_t proxygen::PassThroughHTTPCodecFilter::generatePingRequest ( folly::IOBufQueue writeBuf)
override

Definition at line 311 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

312  {
313  return call_->generatePingRequest(writeBuf);
314 }
size_t proxygen::PassThroughHTTPCodecFilter::generatePriority ( folly::IOBufQueue writeBuf,
StreamID  stream,
const HTTPMessage::HTTPPriority pri 
)
override

Definition at line 337 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

340  {
341  return call_->generatePriority(writeBuf, stream, pri);
342 }
void proxygen::PassThroughHTTPCodecFilter::generatePushPromise ( folly::IOBufQueue writeBuf,
StreamID  stream,
const HTTPMessage msg,
StreamID  assocStream,
bool  eom,
HTTPHeaderSize size 
)
override

Definition at line 240 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

245  {
246  return call_->generatePushPromise(buf, stream, msg, assocStream, eom, size);
247 }
constexpr auto size(C const &c) -> decltype(c.size())
Definition: Access.h:45
size_t proxygen::PassThroughHTTPCodecFilter::generateRstStream ( folly::IOBufQueue writeBuf,
StreamID  stream,
ErrorCode  statusCode 
)
override

Definition at line 295 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

298  {
299  return call_->generateRstStream(writeBuf, stream, code);
300 }
size_t proxygen::PassThroughHTTPCodecFilter::generateSettings ( folly::IOBufQueue writeBuf)
override

Definition at line 322 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

322  {
323  return call_->generateSettings(buf);
324 }
size_t proxygen::PassThroughHTTPCodecFilter::generateSettingsAck ( folly::IOBufQueue writeBuf)
override

Definition at line 326 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

326  {
327  return call_->generateSettingsAck(buf);
328 }
size_t proxygen::PassThroughHTTPCodecFilter::generateTrailers ( folly::IOBufQueue writeBuf,
StreamID  stream,
const HTTPHeaders trailers 
)
override

Definition at line 283 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

286  {
287  return call_->generateTrailers(writeBuf, stream, trailers);
288 }
size_t proxygen::PassThroughHTTPCodecFilter::generateWindowUpdate ( folly::IOBufQueue writeBuf,
StreamID  stream,
uint32_t  delta 
)
override

Definition at line 330 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

333  {
334  return call_->generateWindowUpdate(buf, stream, delta);
335 }
uint32_t proxygen::PassThroughHTTPCodecFilter::getDefaultWindowSize ( ) const
override
HTTPSettings * proxygen::PassThroughHTTPCodecFilter::getEgressSettings ( )
override

Definition at line 359 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

359  {
360  return call_->getEgressSettings();
361 }
HPACKTableInfo proxygen::PassThroughHTTPCodecFilter::getHPACKTableInfo ( ) const
override

Definition at line 153 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

153  {
154  return call_->getHPACKTableInfo();
155 }
const HTTPSettings * proxygen::PassThroughHTTPCodecFilter::getIngressSettings ( ) const
override

Definition at line 363 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

363  {
364  return call_->getIngressSettings();
365 }
HTTPCodec::StreamID proxygen::PassThroughHTTPCodecFilter::getLastIncomingStreamID ( ) const
override

Definition at line 377 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

377  {
378  return call_->getLastIncomingStreamID();
379 }
CodecProtocol proxygen::PassThroughHTTPCodecFilter::getProtocol ( ) const
override

Definition at line 157 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

157  {
158  return call_->getProtocol();
159 }
TransportDirection proxygen::PassThroughHTTPCodecFilter::getTransportDirection ( ) const
override

Definition at line 165 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

165  {
166  return call_->getTransportDirection();
167 }
const std::string & proxygen::PassThroughHTTPCodecFilter::getUserAgent ( ) const
override

Definition at line 161 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

161  {
162  return call_->getUserAgent();
163 }
bool proxygen::PassThroughHTTPCodecFilter::isBusy ( ) const
override

Definition at line 185 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

185  {
186  return call_->isBusy();
187 }
bool proxygen::PassThroughHTTPCodecFilter::isReusable ( ) const
override

Definition at line 206 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

206  {
207  return call_->isReusable();
208 }
bool proxygen::PassThroughHTTPCodecFilter::isWaitingToDrain ( ) const
override

Definition at line 210 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

210  {
211  return call_->isWaitingToDrain();
212 }
int8_t proxygen::PassThroughHTTPCodecFilter::mapDependencyToPriority ( StreamID  parent) const
override

Definition at line 399 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

399  {
400  return call_->mapDependencyToPriority(parent);
401 }
folly::Function< void()> parent
Definition: AtFork.cpp:34
HTTPCodec::StreamID proxygen::PassThroughHTTPCodecFilter::mapPriorityToDependency ( uint8_t  priority) const
override

Definition at line 394 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_, and int8_t.

Referenced by PassThroughHTTPCodecFilter().

394  {
395  return call_->mapPriorityToDependency(priority);
396 }
uint32_t proxygen::PassThroughHTTPCodecFilter::numIncomingStreams ( ) const
override

Definition at line 148 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_.

Referenced by PassThroughHTTPCodecFilter().

148  {
149  return callback_->numIncomingStreams();
150 }
uint32_t proxygen::PassThroughHTTPCodecFilter::numOutgoingStreams ( ) const
override

Definition at line 144 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_.

Referenced by PassThroughHTTPCodecFilter().

144  {
145  return callback_->numOutgoingStreams();
146 }
void proxygen::PassThroughHTTPCodecFilter::onAbort ( StreamID  stream,
ErrorCode  code 
)
override
void proxygen::PassThroughHTTPCodecFilter::onBody ( StreamID  stream,
std::unique_ptr< folly::IOBuf chain,
uint16_t  padding 
)
override

Definition at line 39 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_, and folly::gen::move.

Referenced by PassThroughHTTPCodecFilter().

41  {
42  callback_->onBody(stream, std::move(chain), padding);
43 }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
void proxygen::PassThroughHTTPCodecFilter::onCertificate ( uint16_t  certId,
std::unique_ptr< folly::IOBuf authenticator 
)
override

Definition at line 139 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_, and folly::gen::move.

Referenced by PassThroughHTTPCodecFilter().

140  {
141  callback_->onCertificate(certId, std::move(authenticator));
142 }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
void proxygen::PassThroughHTTPCodecFilter::onCertificateRequest ( uint16_t  requestId,
std::unique_ptr< folly::IOBuf authRequest 
)
override

Definition at line 134 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_, and folly::gen::move.

Referenced by PassThroughHTTPCodecFilter().

135  {
136  callback_->onCertificateRequest(requestId, std::move(authRequest));
137 }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
void proxygen::PassThroughHTTPCodecFilter::onChunkComplete ( StreamID  stream)
override
void proxygen::PassThroughHTTPCodecFilter::onChunkHeader ( StreamID  stream,
size_t  length 
)
override

Definition at line 45 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_.

Referenced by PassThroughHTTPCodecFilter().

46  {
47  callback_->onChunkHeader(stream, length);
48 }
void proxygen::PassThroughHTTPCodecFilter::onError ( StreamID  stream,
const HTTPException error,
bool  newStream = false 
)
override

Definition at line 74 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_.

Referenced by PassThroughHTTPCodecFilter().

77  {
78  callback_->onError(stream, error, newStream);
79 }
requires And< SemiMovable< VN >... > &&SemiMovable< E > auto error(E e)
Definition: error.h:48
void proxygen::PassThroughHTTPCodecFilter::onExMessageBegin ( StreamID  stream,
StreamID  controlStream,
bool  unidirectional,
HTTPMessage msg 
)
override

Definition at line 26 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_.

Referenced by PassThroughHTTPCodecFilter().

29  {
30  callback_->onExMessageBegin(stream, controlStream, unidirectional, msg);
31 }
void proxygen::PassThroughHTTPCodecFilter::onFrameHeader ( StreamID  stream_id,
uint8_t  flags,
uint64_t  length,
uint8_t  type,
uint16_t  version = 0 
)
override

Definition at line 65 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_.

Referenced by PassThroughHTTPCodecFilter().

70  {
71  callback_->onFrameHeader(stream_id, flags, length, type, version);
72 }
flags
Definition: http_parser.h:127
PskType type
ProtocolVersion version
void proxygen::PassThroughHTTPCodecFilter::onGenerateFrameHeader ( StreamID  streamID,
uint8_t  type,
uint64_t  length,
uint16_t  version 
)
override

Definition at line 127 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_.

Referenced by PassThroughHTTPCodecFilter().

130  {
131  callback_->onGenerateFrameHeader(streamID, length, type, version);
132 }
PskType type
ProtocolVersion version
uint32_t streamID
Definition: SPDYCodec.cpp:131
void proxygen::PassThroughHTTPCodecFilter::onGoaway ( uint64_t  lastGoodStreamID,
ErrorCode  code,
std::unique_ptr< folly::IOBuf debugData = nullptr 
)
override

Definition at line 86 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_, and folly::gen::move.

Referenced by PassThroughHTTPCodecFilter().

89  {
90  callback_->onGoaway(lastGoodStreamID, code, std::move(debugData));
91 }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
void proxygen::PassThroughHTTPCodecFilter::onHeadersComplete ( StreamID  stream,
std::unique_ptr< HTTPMessage msg 
)
override

Definition at line 33 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_, and folly::gen::move.

Referenced by PassThroughHTTPCodecFilter().

35  {
36  callback_->onHeadersComplete(stream, std::move(msg));
37 }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
size_t proxygen::PassThroughHTTPCodecFilter::onIngress ( const folly::IOBuf buf)
override

Definition at line 193 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

193  {
194  return call_->onIngress(buf);
195 }
void proxygen::PassThroughHTTPCodecFilter::onIngressEOF ( )
override

Definition at line 197 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

197  {
198  call_->onIngressEOF();
199 }
bool proxygen::PassThroughHTTPCodecFilter::onIngressUpgradeMessage ( const HTTPMessage msg)
override

Definition at line 201 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

202  {
203  return call_->onIngressUpgradeMessage(msg);
204 }
void proxygen::PassThroughHTTPCodecFilter::onMessageBegin ( StreamID  stream,
HTTPMessage msg 
)
override
void proxygen::PassThroughHTTPCodecFilter::onMessageComplete ( StreamID  stream,
bool  upgrade 
)
override

Definition at line 60 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_.

Referenced by PassThroughHTTPCodecFilter().

61  {
62  callback_->onMessageComplete(stream, upgrade);
63 }
bool proxygen::PassThroughHTTPCodecFilter::onNativeProtocolUpgrade ( StreamID  stream,
CodecProtocol  protocol,
const std::string protocolString,
HTTPMessage msg 
)
override

Definition at line 120 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_.

Referenced by PassThroughHTTPCodecFilter().

122  {
123  return callback_->onNativeProtocolUpgrade(streamID, protocol, protocolString,
124  msg);
125 }
uint32_t streamID
Definition: SPDYCodec.cpp:131
void proxygen::PassThroughHTTPCodecFilter::onPingReply ( uint64_t  uniqueID)
override

Definition at line 97 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_.

Referenced by PassThroughHTTPCodecFilter().

97  {
98  callback_->onPingReply(uniqueID);
99 }
void proxygen::PassThroughHTTPCodecFilter::onPingRequest ( uint64_t  uniqueID)
override

Definition at line 93 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_.

Referenced by PassThroughHTTPCodecFilter().

93  {
94  callback_->onPingRequest(uniqueID);
95 }
void proxygen::PassThroughHTTPCodecFilter::onPriority ( StreamID  stream,
const HTTPMessage::HTTPPriority pri 
)
override
void proxygen::PassThroughHTTPCodecFilter::onPushMessageBegin ( StreamID  stream,
StreamID  assocStream,
HTTPMessage msg 
)
override

Definition at line 20 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_.

Referenced by PassThroughHTTPCodecFilter().

22  {
23  callback_->onPushMessageBegin(stream, assocStream, msg);
24 }
void proxygen::PassThroughHTTPCodecFilter::onSettings ( const SettingsList settings)
override

Definition at line 106 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_.

Referenced by PassThroughHTTPCodecFilter().

106  {
107  callback_->onSettings(settings);
108 }
static http_parser_settings settings
Definition: test.c:1529
void proxygen::PassThroughHTTPCodecFilter::onSettingsAck ( )
override

Definition at line 110 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_.

Referenced by PassThroughHTTPCodecFilter().

110  {
111  callback_->onSettingsAck();
112 }
void proxygen::PassThroughHTTPCodecFilter::onTrailersComplete ( StreamID  stream,
std::unique_ptr< HTTPHeaders trailers 
)
override

Definition at line 54 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_, and folly::gen::move.

Referenced by PassThroughHTTPCodecFilter().

56  {
57  callback_->onTrailersComplete(stream, std::move(trailers));
58 }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
void proxygen::PassThroughHTTPCodecFilter::onWindowUpdate ( StreamID  stream,
uint32_t  amount 
)
override

Definition at line 101 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::callback_.

Referenced by PassThroughHTTPCodecFilter().

102  {
103  callback_->onWindowUpdate(stream, amount);
104 }
void proxygen::PassThroughHTTPCodecFilter::setCallback ( HTTPCodec::Callback callback)
override
void proxygen::PassThroughHTTPCodecFilter::setHeaderCodecStats ( HeaderCodec::Stats stats)
override

Definition at line 371 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

372  {
373  call_->setHeaderCodecStats(stats);
374 }
void proxygen::PassThroughHTTPCodecFilter::setParserPaused ( bool  paused)
override

Definition at line 189 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

189  {
190  call_->setParserPaused(paused);
191 }
bool proxygen::PassThroughHTTPCodecFilter::supportsParallelRequests ( ) const
override

Definition at line 218 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

218  {
219  return call_->supportsParallelRequests();
220 }
bool proxygen::PassThroughHTTPCodecFilter::supportsPushTransactions ( ) const
override

Definition at line 222 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

222  {
223  return call_->supportsPushTransactions();
224 }
bool proxygen::PassThroughHTTPCodecFilter::supportsSessionFlowControl ( ) const
override

Definition at line 173 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

173  {
174  return call_->supportsSessionFlowControl();
175 }
bool proxygen::PassThroughHTTPCodecFilter::supportsStreamFlowControl ( ) const
override

Definition at line 169 of file HTTPCodecFilter.cpp.

References proxygen::GenericFilter< T1, T2, set_callback, TakeOwnership, Dp >::call_.

Referenced by PassThroughHTTPCodecFilter().

169  {
170  return call_->supportsStreamFlowControl();
171 }

The documentation for this class was generated from the following files: