TSRemapFromToUrlGet(3ts)

TSRemapFromToUrlGet3ts

Tsremapfromtourlget api function

Usage

#include <ts/ts.h>
TSReturnCode TSRemapFromUrlGet(TSHttpTxn txnp, TSMLoc *urlLocp)
TSReturnCode TSRemapToUrlGet(TSHttpTxn txnp, TSMLoc *urlLocp)

Overview

These functions are useful for transactions where the URL is remapped, due to matching a line in remap.config. TSRemapFromUrlGet() returns the from URL in the matching line in remap.config. TSRemapToUrlGet() returns the to URL in the matching line in remap.config. This info is available at or after the TS_HTTP_POST_REMAP_HOOK hook. If the function returns TS_SUCCESS, the location of the URL is put into the variable pointed to by urlLocp. On error, the function returns TS_ERROR.

Releases

3 releases since Debian 10 (Buster); the text changed 2 times.

  1. 10
  2. 11
  3. 12

From trafficserver-dev 9.2.5+ds-0+deb12u4 in Debian 12 (Bookworm). Parsed by carta from the page's man source.