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

Function TSHttpTxnServerReqGet

src/api/InkAPI.cc:4004–4022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4002}
4003
4004TSReturnCode
4005TSHttpTxnServerReqGet(TSHttpTxn txnp, TSMBuffer *bufp, TSMLoc *obj)
4006{
4007 sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS);
4008 sdk_assert(sdk_sanity_check_null_ptr((void *)bufp) == TS_SUCCESS);
4009 sdk_assert(sdk_sanity_check_null_ptr((void *)obj) == TS_SUCCESS);
4010
4011 HttpSM *sm = reinterpret_cast<HttpSM *>(txnp);
4012 HTTPHdr *hptr = &(sm->t_state.hdr_info.server_request);
4013
4014 if (hptr->valid()) {
4015 *(reinterpret_cast<HTTPHdr **>(bufp)) = hptr;
4016 *obj = reinterpret_cast<TSMLoc>(hptr->m_http);
4017 sdk_assert(sdk_sanity_check_mbuffer(*bufp) == TS_SUCCESS);
4018 return TS_SUCCESS;
4019 }
4020
4021 return TS_ERROR;
4022}
4023
4024TSReturnCode
4025TSHttpTxnServerRespGet(TSHttpTxn txnp, TSMBuffer *bufp, TSMLoc *obj)

Callers 15

_initializeMethod · 0.85
checkHttpTxnServerReqGetFunction · 0.85
testsForSendReqHdrHookFunction · 0.85
initializeMethod · 0.85
print_request_headersFunction · 0.85
gatherMethod · 0.85
transform_pluginFunction · 0.85
preq_hdrMethod · 0.85
transaction_handlerFunction · 0.85
SslHdrExpandRequestHookFunction · 0.85

Calls 4

sdk_sanity_check_txnFunction · 0.85
sdk_sanity_check_mbufferFunction · 0.85
validMethod · 0.45

Tested by 2

checkHttpTxnServerReqGetFunction · 0.68
testsForSendReqHdrHookFunction · 0.68