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

Function TSHttpAltInfoClientReqGet

src/api/InkAPI.cc:5509–5520  ·  view source on GitHub ↗

HTTP alternate selection */

Source from the content-addressed store, hash-verified

5507
5508/* HTTP alternate selection */
5509TSReturnCode
5510TSHttpAltInfoClientReqGet(TSHttpAltInfo infop, TSMBuffer *bufp, TSMLoc *obj)
5511{
5512 sdk_assert(sdk_sanity_check_alt_info(infop) == TS_SUCCESS);
5513
5514 HttpAltInfo *info = reinterpret_cast<HttpAltInfo *>(infop);
5515
5516 *(reinterpret_cast<HTTPHdr **>(bufp)) = &info->m_client_req;
5517 *obj = reinterpret_cast<TSMLoc>(info->m_client_req.m_http);
5518
5519 return sdk_sanity_check_mbuffer(*bufp);
5520}
5521
5522TSReturnCode
5523TSHttpAltInfoCachedReqGet(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