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

Function TSHttpAltInfoCachedReqGet

src/api/InkAPI.cc:5522–5533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5520}
5521
5522TSReturnCode
5523TSHttpAltInfoCachedReqGet(TSHttpAltInfo infop, TSMBuffer *bufp, TSMLoc *obj)
5524{
5525 sdk_assert(sdk_sanity_check_alt_info(infop) == TS_SUCCESS);
5526
5527 HttpAltInfo *info = reinterpret_cast<HttpAltInfo *>(infop);
5528
5529 *(reinterpret_cast<HTTPHdr **>(bufp)) = &info->m_cached_req;
5530 *obj = reinterpret_cast<TSMLoc>(info->m_cached_req.m_http);
5531
5532 return sdk_sanity_check_mbuffer(*bufp);
5533}
5534
5535TSReturnCode
5536TSHttpAltInfoCachedRespGet(TSHttpAltInfo infop, TSMBuffer *bufp, TSMLoc *obj)

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