traeak commented on code in PR #12593: URL: https://github.com/apache/trafficserver/pull/12593#discussion_r4509141897
########## include/ts/ts.h: ########## @@ -1757,18 +1758,40 @@ void TSHttpTxnErrorBodySet(TSHttpTxn txnp, char *buf, size_t buflength, char *mi */ char *TSHttpTxnErrorBodyGet(TSHttpTxn txnp, size_t *buflength, char **mimetype); +/** + Retrieves a handle to the named strategy in the strategy table. + Returns nullptr if no strategy is found. + This uses the current transaction's state machine to get + access to UrlRewrite's NextHopStrategyFactory. + It's preferable to retrieve strategies during TSRemapNewInstance. + + @param txnp HTTP transaction which holds the strategy table. + @param name of the strategy to look up. Review Comment: added -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
