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

Function TSHttpTxnClientReqGet

src/api/InkAPI.cc:3875–3895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3873}
3874
3875TSReturnCode
3876TSHttpTxnClientReqGet(TSHttpTxn txnp, TSMBuffer *bufp, TSMLoc *obj)
3877{
3878 sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS);
3879 sdk_assert(sdk_sanity_check_null_ptr((void *)bufp) == TS_SUCCESS);
3880 sdk_assert(sdk_sanity_check_null_ptr((void *)obj) == TS_SUCCESS);
3881
3882 HttpSM *sm = reinterpret_cast<HttpSM *>(txnp);
3883 HTTPHdr *hptr = &(sm->t_state.hdr_info.client_request);
3884
3885 if (hptr->valid()) {
3886 *(reinterpret_cast<HTTPHdr **>(bufp)) = hptr;
3887 *obj = reinterpret_cast<TSMLoc>(hptr->m_http);
3888 if (sdk_sanity_check_mbuffer(*bufp) == TS_SUCCESS) {
3889 hptr->mark_target_dirty();
3890 return TS_SUCCESS;
3891 ;
3892 }
3893 }
3894 return TS_ERROR;
3895}
3896
3897// pristine url is the url before remap
3898TSReturnCode

Callers 15

handle_dnsFunction · 0.85
should_pushFunction · 0.85
handle_client_lookupFunction · 0.85
sink_requested_helperFunction · 0.85
is_post_requestFunction · 0.85
handle_dnsFunction · 0.85
handle_responseFunction · 0.85
TSRemapDoRemapFunction · 0.85
handle_dnsFunction · 0.85
handle_dnsFunction · 0.85
handle_responseFunction · 0.85
add_headerFunction · 0.85

Calls 5

sdk_sanity_check_txnFunction · 0.85
sdk_sanity_check_mbufferFunction · 0.85
mark_target_dirtyMethod · 0.80
validMethod · 0.45

Tested by 5

get_request_idFunction · 0.68
checkHttpTxnClientReqGetFunction · 0.68
transform_hook_handlerFunction · 0.68
is_get_requestFunction · 0.68
testsForReadReqHdrHookFunction · 0.68