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

Function TSHttpTxnParentProxyGet

src/api/InkAPI.cc:4900–4911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4898}
4899
4900TSReturnCode
4901TSHttpTxnParentProxyGet(TSHttpTxn txnp, const char **hostname, int *port)
4902{
4903 sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS);
4904
4905 HttpSM *sm = reinterpret_cast<HttpSM *>(txnp);
4906
4907 *hostname = sm->t_state.api_info.parent_proxy_name;
4908 *port = sm->t_state.api_info.parent_proxy_port;
4909
4910 return TS_SUCCESS;
4911}
4912
4913void
4914TSHttpTxnParentProxySet(TSHttpTxn txnp, const char *hostname, int port)

Callers 2

checkHttpTxnParentProxyFunction · 0.85

Calls 1

sdk_sanity_check_txnFunction · 0.85

Tested by 1

checkHttpTxnParentProxyFunction · 0.68