MCPcopy Create free account
hub / github.com/apache/trafficserver / TransformationPlugin

Method TransformationPlugin

src/tscpp/api/TransformationPlugin.cc:273–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271} /* anonymous namespace */
272
273TransformationPlugin::TransformationPlugin(Transaction &transaction, TransformationPlugin::Type type)
274 : TransactionPlugin(transaction), state_(nullptr)
275{
276 state_ = new TransformationPluginState(transaction, *this, type, static_cast<TSHttpTxn>(transaction.getAtsHandle()));
277 state_->vconn_ = TSTransformCreate(handleTransformationPluginEvents, state_->txn_);
278 TSContDataSet(state_->vconn_, static_cast<void *>(state_)); // edata in a TransformationHandler is NOT a TSHttpTxn.
279 LOG_DEBUG("Creating TransformationPlugin=%p (vconn)contp=%p tshttptxn=%p transformation_type=%d", this, state_->vconn_,
280 state_->txn_, type);
281 TSHttpTxnHookAdd(state_->txn_, utils::internal::convertInternalTransformationTypeToTsHook(type), state_->vconn_);
282}
283
284TransformationPlugin::~TransformationPlugin()
285{

Callers

nothing calls this directly

Calls 4

TSTransformCreateFunction · 0.85
TSContDataSetFunction · 0.85
TSHttpTxnHookAddFunction · 0.85
getAtsHandleMethod · 0.80

Tested by

no test coverage detected