| 841 | } |
| 842 | |
| 843 | TSRemapStatus |
| 844 | TSRemapDoRemap(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 | |
| 858 | TSReturnCode |
| 859 | TSRemapNewInstance(int /* argc */, char * /* argv */[], void **ih, char * /* errbuf ATS_UNUSED */, int /* errbuf_size ATS_UNUSED */) |
nothing calls this directly
no test coverage detected