logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

TSHttpTxnIsInternal - test whether a request is internally-generated

Description

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

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

Examples

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

          static bool
          checkForCacheHeader(const char *name, int name_len, const char *value, int value_len, bool &cacheable)
          {

Name

       TSHttpTxnIsInternal - test whether a request is internally-generated

Return Values

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

See Also

TSAPI(3ts)

Synopsis

          #include <ts/ts.h>

       intTSHttpTxnIsInternal(TSHttpTxntxnp)intTSHttpSsnIsInternal(TSHttpSsnssnp)

See Also