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

Function TSHttpTxnClientRespGet

src/api/InkAPI.cc:3984–4002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3982}
3983
3984TSReturnCode
3985TSHttpTxnClientRespGet(TSHttpTxn txnp, TSMBuffer *bufp, TSMLoc *obj)
3986{
3987 sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS);
3988 sdk_assert(sdk_sanity_check_null_ptr((void *)bufp) == TS_SUCCESS);
3989 sdk_assert(sdk_sanity_check_null_ptr((void *)obj) == TS_SUCCESS);
3990
3991 HttpSM *sm = reinterpret_cast<HttpSM *>(txnp);
3992 HTTPHdr *hptr = &(sm->t_state.hdr_info.client_response);
3993
3994 if (hptr->valid()) {
3995 *(reinterpret_cast<HTTPHdr **>(bufp)) = hptr;
3996 *obj = reinterpret_cast<TSMLoc>(hptr->m_http);
3997 sdk_assert(sdk_sanity_check_mbuffer(*bufp) == TS_SUCCESS);
3998 return TS_SUCCESS;
3999 }
4000
4001 return TS_ERROR;
4002}
4003
4004TSReturnCode
4005TSHttpTxnServerReqGet(TSHttpTxn txnp, TSMBuffer *bufp, TSMLoc *obj)

Callers 15

handle_responseFunction · 0.85
handle_responseFunction · 0.85
handle_responseFunction · 0.85
handle_responseFunction · 0.85
_initializeMethod · 0.85
get_response_idFunction · 0.85
parent_proxy_failFunction · 0.85
txn_handlerFunction · 0.85
cont_remapFunction · 0.85
modifyResponseHeaderFunction · 0.85

Calls 4

sdk_sanity_check_txnFunction · 0.85
sdk_sanity_check_mbufferFunction · 0.85
validMethod · 0.45

Tested by 3

get_response_idFunction · 0.68
parent_proxy_failFunction · 0.68