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

Function TSHttpTxnParentProxySet

src/api/InkAPI.cc:4913–4924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4911}
4912
4913void
4914TSHttpTxnParentProxySet(TSHttpTxn txnp, const char *hostname, int port)
4915{
4916 sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS);
4917 sdk_assert(sdk_sanity_check_null_ptr((void *)hostname) == TS_SUCCESS);
4918 sdk_assert(port > 0);
4919
4920 HttpSM *sm = reinterpret_cast<HttpSM *>(txnp);
4921
4922 sm->t_state.api_info.parent_proxy_name = sm->t_state.arena.str_store(hostname, strlen(hostname));
4923 sm->t_state.api_info.parent_proxy_port = port;
4924}
4925
4926TSReturnCode
4927TSHttpTxnParentSelectionUrlGet(TSHttpTxn txnp, TSMBuffer bufp, TSMLoc obj)

Callers 3

checkHttpTxnParentProxyFunction · 0.85
parent_proxy_handlerFunction · 0.85

Calls 3

sdk_sanity_check_txnFunction · 0.85
str_storeMethod · 0.80

Tested by 2

checkHttpTxnParentProxyFunction · 0.68
parent_proxy_handlerFunction · 0.68