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

Function TSHttpAltInfoCachedRespGet

src/api/InkAPI.cc:5535–5546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5533}
5534
5535TSReturnCode
5536TSHttpAltInfoCachedRespGet(TSHttpAltInfo infop, TSMBuffer *bufp, TSMLoc *obj)
5537{
5538 sdk_assert(sdk_sanity_check_alt_info(infop) == TS_SUCCESS);
5539
5540 HttpAltInfo *info = reinterpret_cast<HttpAltInfo *>(infop);
5541
5542 *(reinterpret_cast<HTTPHdr **>(bufp)) = &info->m_cached_resp;
5543 *obj = reinterpret_cast<TSMLoc>(info->m_cached_resp.m_http);
5544
5545 return sdk_sanity_check_mbuffer(*bufp);
5546}
5547
5548void
5549TSHttpAltInfoQualitySet(TSHttpAltInfo infop, float quality)

Callers 2

altinfo_hook_handlerFunction · 0.85
invokePluginForEventMethod · 0.85

Calls 2

sdk_sanity_check_mbufferFunction · 0.85

Tested by 1

altinfo_hook_handlerFunction · 0.68