TSHttpTxnIsInternal

Test whether a request is internally-generated.

Synopsis

#include <ts/ts.h>

TSReturnCode TSHttpTxnIsInternal(TSHttpTxn txnp)
TSReturnCode 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 returns a TSReturnCode, indicating whether the object was internal (TS_SUCCESS) or not (TS_ERROR).

Examples

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

See also

TSAPI(3ts)