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

Function TSRemapDoRemap

plugins/generator/generator.cc:843–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

841}
842
843TSRemapStatus
844TSRemapDoRemap(void * /* ih */, TSHttpTxn txn, TSRemapRequestInfo *rri)
845{
846 const TSHttpStatus txnstat = TSHttpTxnStatusGet(txn);
847 if (txnstat != TS_HTTP_STATUS_NONE && txnstat != TS_HTTP_STATUS_OK) {
848 VDEBUG("transaction status_code=%d already set; skipping processing", static_cast<int>(txnstat));
849 return TSREMAP_NO_REMAP;
850 }
851
852 // Check if we should turn off the cache before doing anything else ...
853 CheckCacheable(txn, rri->requestUrl, rri->requestBufp);
854 TSHttpTxnHookAdd(txn, TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK, TxnHook);
855 return TSREMAP_NO_REMAP; // This plugin never rewrites anything.
856}
857
858TSReturnCode
859TSRemapNewInstance(int /* argc */, char * /* argv */[], void **ih, char * /* errbuf ATS_UNUSED */, int /* errbuf_size ATS_UNUSED */)

Callers

nothing calls this directly

Calls 3

TSHttpTxnStatusGetFunction · 0.85
CheckCacheableFunction · 0.85
TSHttpTxnHookAddFunction · 0.85

Tested by

no test coverage detected