DOKK / manpages / debian 11 / trafficserver-dev / TSHttpTxnIsInternal.3ts.en
TSHTTPTXNISINTERNAL(3ts) Apache Traffic Server TSHTTPTXNISINTERNAL(3ts)

TSHttpTxnIsInternal - test whether a request is internally-generated

#include <ts/ts.h>



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

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

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

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


if (Utils::areEqual(name, name_len, TS_MIME_FIELD_EXPIRES, TS_MIME_LEN_EXPIRES)) {
if ((value_len == 1) && (*value == '0')) {
cacheable = false;
} else if (Utils::areEqual(value, value_len, "-1", 2)) {


TSAPI(3ts)

2023, dev@trafficserver.apache.org

November 2, 2023 8.1