Provided by: trafficserver-dev_9.1.3+ds-1_amd64 bug

NAME

       TSHttpTxnIsInternal - test whether a request is internally-generated

SYNOPSIS

          #include <ts/ts.h>

       int TSHttpTxnIsInternal(TSHttpTxn txnp)

       int TSHttpSsnIsInternal(TSHttpSsn ssnp)

DESCRIPTION

       TSHttpTxnIsInternal()  tests  whether  a  HTTP  transaction  was originated within Traffic
       Server.

       TSHttpSsnIsInternal() tests whether a HTTP session was originated within Traffic Server.

RETURN VALUES

       Both these APIs return a int, indicating whether the request was internal (1) or not (0).

EXAMPLES

       The ESI plugin uses TSHttpTxnIsInternal() to ignore requests that is had  generated  while
       fetching portions of an ESI document:

              if (Utils::areEqual(value, value_len, TS_HTTP_VALUE_PRIVATE, TS_HTTP_LEN_PRIVATE)) {
                cacheable = false;
              }
              return true;

SEE ALSO

       TSAPI(3ts)

COPYRIGHT

       2022, dev@trafficserver.apache.org