atscppapi
1.0.9
C++ wrapper for Apache Traffic Server API
|
A TransformationPlugin to easily add gzip inflate to your TransformationPlugin chain. More...
#include "GzipInflateTransformation.h"
Public Member Functions | |
GzipInflateTransformation (Transaction &transaction, TransformationPlugin::Type type) | |
void | consume (const std::string &) |
void | handleInputComplete () |
![]() | |
virtual | ~TransformationPlugin () |
![]() | |
void | registerHook (Plugin::HookType hook_type) |
![]() | |
virtual void | handleReadRequestHeadersPreRemap (Transaction &transaction) |
virtual void | handleReadRequestHeadersPostRemap (Transaction &transaction) |
virtual void | handleSendRequestHeaders (Transaction &transaction) |
virtual void | handleReadResponseHeaders (Transaction &transaction) |
virtual void | handleSendResponseHeaders (Transaction &transaction) |
virtual void | handleOsDns (Transaction &transaction) |
Additional Inherited Members | |
![]() | |
enum | Type { REQUEST_TRANSFORMATION = 0, RESPONSE_TRANSFORMATION } |
![]() | |
size_t | produce (const std::string &) |
size_t | setOutputComplete () |
TransformationPlugin (Transaction &transaction, Type type) | |
A TransformationPlugin to easily add gzip inflate to your TransformationPlugin chain.
The GzipInflateTransformation is a helper transformation that can be used to easily decompress gzipped content. For a full example of GzipInflateTransformation and GzipDeflateTransformation see examples/gzip_transformation/.
GzipInflateTransformation::GzipInflateTransformation | ( | Transaction & | transaction, |
TransformationPlugin::Type | type | ||
) |
A full example of how to use GzipInflateTransformation and GzipDeflateTransformation is available in examples/gzip_tranformation/
transaction | As with any TransformationPlugin you must pass in the transaction |
type | because the GzipInflateTransformation can be used with both requests and responses you must specify the Type. |
|
virtual |
Any TransformationPlugin must implement consume(), this method will take content from the transformation chain and gzip decompress it.
data | the input data to decompress |
Implements atscppapi::TransformationPlugin.
|
virtual |
Any TransformationPlugin must implement handleInputComplete(), this method will finalize the gzip decompression.
Implements atscppapi::TransformationPlugin.