TSHttpTxnNextHopNamedStrategyGet

Synopsis

#include <ts/ts.h>
void const *TSHttpTxnNextHopNamedStrategyGet(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.

This function uses the transaction txnp to get access to the NextHopStrategyFactory associated with the current configuration.

Note

This returned pointer must not be freed and the contents must not be changed. Strategy pointers held by plugins will become invalid when ATS configs are reloaded and should be reset with TSRemapNewInstance()

See Also

TSHttpTxnNextHopStrategySet()