| 5453 | } |
| 5454 | |
| 5455 | TSReturnCode |
| 5456 | TSHttpTxnCachedRespTimeGet(TSHttpTxn txnp, time_t *resp_time) |
| 5457 | { |
| 5458 | sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS); |
| 5459 | |
| 5460 | HttpSM *sm = reinterpret_cast<HttpSM *>(txnp); |
| 5461 | HTTPInfo *cached_obj = sm->t_state.cache_info.object_read; |
| 5462 | |
| 5463 | if (cached_obj == nullptr || !cached_obj->valid()) { |
| 5464 | return TS_ERROR; |
| 5465 | } |
| 5466 | |
| 5467 | *resp_time = cached_obj->response_received_time_get(); |
| 5468 | return TS_SUCCESS; |
| 5469 | } |
| 5470 | |
| 5471 | int |
| 5472 | TSHttpCurrentClientConnectionsGet() |
nothing calls this directly
no test coverage detected