| 175 | } |
| 176 | |
| 177 | TSRemapStatus |
| 178 | TSRemapDoRemap(void *i, TSHttpTxn t, TSRemapRequestInfo * /* r ATS_UNUSED */) |
| 179 | { |
| 180 | assert(i != nullptr); |
| 181 | assert(t != nullptr); |
| 182 | const Instance *const instance = static_cast<const Instance *>(i); |
| 183 | |
| 184 | if (!instance->origins.empty() && !TSHttpTxnIsInternal(t)) { |
| 185 | DoRemap(*instance, t); |
| 186 | } else { |
| 187 | Dbg(dbg_ctl, "Skipping transaction %p", t); |
| 188 | } |
| 189 | |
| 190 | return TSREMAP_NO_REMAP; |
| 191 | } |
nothing calls this directly
no test coverage detected