proxygen
|
#include <ZlibServerFilter.h>
Public Member Functions | |
ZlibServerFilterFactory (int32_t compressionLevel, uint32_t minimumCompressionSize, const std::set< std::string > compressibleContentTypes) | |
void | onServerStart (folly::EventBase *) noexceptoverride |
void | onServerStop () noexceptoverride |
RequestHandler * | onRequest (RequestHandler *h, HTTPMessage *msg) noexceptoverride |
Public Member Functions inherited from proxygen::RequestHandlerFactory | |
virtual | ~RequestHandlerFactory () |
Protected Member Functions | |
bool | acceptsSupportedCompressionType (HTTPMessage *msg) noexcept |
Protected Attributes | |
int32_t | compressionLevel_ |
uint32_t | minimumCompressionSize_ |
const std::shared_ptr< std::set< std::string > > | compressibleContentTypes_ |
Definition at line 196 of file ZlibServerFilter.h.
|
inlineexplicit |
Definition at line 198 of file ZlibServerFilter.h.
|
inlineprotectednoexcept |
Definition at line 231 of file ZlibServerFilter.h.
References proxygen::HTTP_HEADER_ACCEPT_ENCODING, gmock_output_test::output, and proxygen::RFC2616::parseQvalues().
|
inlineoverridevirtualnoexcept |
Invoked for each new request server handles. HTTPMessage is provided so that user can potentially choose among several implementation of handler based on URL or something. No need to save/copy this HTTPMessage. RequestHandler will be given the HTTPMessage in a separate callback.
Some request handlers don't handle the request themselves (think filters). They do take some actions based on request/response but otherwise they just hand-off request to some other RequestHandler. This upstream RequestHandler is given as first parameter. For the terminal RequestHandler this will by nullptr.
Implements proxygen::RequestHandlerFactory.
Definition at line 212 of file ZlibServerFilter.h.
References proxygen::ZlibServerFilter::compressibleContentTypes_, proxygen::ZlibServerFilter::compressionLevel_, h, proxygen::ZlibServerFilter::minimumCompressionSize_, and proxygen::ZlibServerFilter::ZlibServerFilter().
|
inlineoverridevirtualnoexcept |
Invoked in each thread server is going to handle requests before we start handling requests. Can be used to setup thread-local setup for each thread (stats and such).
Implements proxygen::RequestHandlerFactory.
Definition at line 208 of file ZlibServerFilter.h.
|
inlineoverridevirtualnoexcept |
Invoked in each handler thread after all the connections are drained from that thread. Can be used to tear down thread-local setup.
Implements proxygen::RequestHandlerFactory.
Definition at line 210 of file ZlibServerFilter.h.
|
protected |
Definition at line 253 of file ZlibServerFilter.h.
|
protected |
Definition at line 251 of file ZlibServerFilter.h.
|
protected |
Definition at line 252 of file ZlibServerFilter.h.