| 4306 | } |
| 4307 | |
| 4308 | const char * |
| 4309 | TSHttpTxnCacheDiskPathGet(TSHttpTxn txnp, int *length) |
| 4310 | { |
| 4311 | sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS); |
| 4312 | |
| 4313 | HttpSM *sm = reinterpret_cast<HttpSM *>(txnp); |
| 4314 | char const *path = nullptr; |
| 4315 | |
| 4316 | if (HttpCacheSM *c_sm = &(sm->get_cache_sm()); c_sm) { |
| 4317 | path = c_sm->get_disk_path(); |
| 4318 | } |
| 4319 | if (length) { |
| 4320 | *length = path ? strlen(path) : 0; |
| 4321 | } |
| 4322 | |
| 4323 | return path; |
| 4324 | } |
| 4325 | |
| 4326 | TSReturnCode |
| 4327 | TSHttpTxnCacheLookupUrlGet(TSHttpTxn txnp, TSMBuffer bufp, TSMLoc obj) |
no test coverage detected