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

Function TSHttpTxnCachedRespTimeGet

src/api/InkAPI.cc:5455–5469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5453}
5454
5455TSReturnCode
5456TSHttpTxnCachedRespTimeGet(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
5471int
5472TSHttpCurrentClientConnectionsGet()

Callers

nothing calls this directly

Calls 3

sdk_sanity_check_txnFunction · 0.85
validMethod · 0.45

Tested by

no test coverage detected