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

Function TSHttpTxnTransformRespGet

src/api/InkAPI.cc:4574–4589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4572}
4573
4574TSReturnCode
4575TSHttpTxnTransformRespGet(TSHttpTxn txnp, TSMBuffer *bufp, TSMLoc *obj)
4576{
4577 sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS);
4578
4579 HttpSM *sm = reinterpret_cast<HttpSM *>(txnp);
4580 HTTPHdr *hptr = &(sm->t_state.hdr_info.transform_response);
4581
4582 if (hptr->valid()) {
4583 *(reinterpret_cast<HTTPHdr **>(bufp)) = hptr;
4584 *obj = reinterpret_cast<TSMLoc>(hptr->m_http);
4585 return sdk_sanity_check_mbuffer(*bufp);
4586 }
4587
4588 return TS_ERROR;
4589}
4590
4591sockaddr const *
4592TSHttpSsnClientAddrGet(TSHttpSsn ssnp)

Callers 5

transform_hook_handlerFunction · 0.85
compress_transform_initFunction · 0.85
setup_icap_status_headerFunction · 0.85
handle_icap_http_headerFunction · 0.85

Calls 3

sdk_sanity_check_txnFunction · 0.85
sdk_sanity_check_mbufferFunction · 0.85
validMethod · 0.45

Tested by 1

transform_hook_handlerFunction · 0.68