TSHttpTxnNextHopStrategyFind
Synopsis
#include <ts/ts.h>
-
TSStrategy TSHttpTxnNextHopStrategyFind(TSHttpTxn txnp, const char *name)
Description
Gets a pointer to the specified name NextHopSelectionStrategy. This may be nullptr indicating that no strategy exists with the given name, or that no rewrite table or strategy factory existed when the transaction started.
This function uses the transaction txnp to get access to the NextHopStrategyFactory associated with the current configuration.
Note
name must not be nullptr. Passing a null name is an API
violation and will abort the process in default builds.
Note
This returned pointer must not be freed and the contents must not
be changed.
Strategy pointers held by plugins become invalid when ATS configs
are reloaded and must be re-obtained during TSRemapNewInstance()
Deprecated
-
void const *TSHttpTxnNextHopNamedStrategyGet(TSHttpTxn txnp, const char *name)
Deprecated since version 11.0.0: Use
TSHttpTxnNextHopStrategyFind(). This 10.2 name will be removed in a future major release.Forwards to
TSHttpTxnNextHopStrategyFind().