| 4911 | } |
| 4912 | |
| 4913 | void |
| 4914 | TSHttpTxnParentProxySet(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 | |
| 4926 | TSReturnCode |
| 4927 | TSHttpTxnParentSelectionUrlGet(TSHttpTxn txnp, TSMBuffer bufp, TSMLoc obj) |