HTTP alternate selection */
| 5507 | |
| 5508 | /* HTTP alternate selection */ |
| 5509 | TSReturnCode |
| 5510 | TSHttpAltInfoClientReqGet(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 | |
| 5522 | TSReturnCode |
| 5523 | TSHttpAltInfoCachedReqGet(TSHttpAltInfo infop, TSMBuffer *bufp, TSMLoc *obj) |