TSHTTPTXNISINTERNAL(3ts)
π TSHTTPTXNISINTERNAL(3ts) π
okay bestie, welcome to the 3ts corner of the manual, aka the Apache Traffic Server API zone β¨ this one's short and sweet and it answers exactly one (1) question: did we make this request ourselves, or did somebody else? π¦
πΈ NAME πΈ
TSHttpTxnIsInternal β test whether a request is internally-generated π
β¨ SYNOPSIS β¨
#include <ts/ts.h>
int TSHttpTxnIsInternal(TSHttpTxn txnp)
int TSHttpSsnIsInternal(TSHttpSsn ssnp)
π DESCRIPTION π
So like, two lil functions, both with the same energy:
TSHttpTxnIsInternal()β tests whether a HTTP transaction was originated within Traffic Server π«ΆTSHttpSsnIsInternal()β tests whether a HTTP session was originated within Traffic Server π«Ά
that's it. that's the whole vibe. internal origin or not, no in-between π
π RETURN VALUES π
Both these APIs return a int, indicating whether the request was internal (1) or not (0) π
so: 1 = yeah girl we made it, 0 = nope, this came from outside. no cap π
π EXAMPLES π
the ESI plugin uses TSHttpTxnIsInternal() to ignore requests that it had generated while fetching portions of an ESI document π iconic behaviour honestly
static bool
checkForCacheHeader(const char *name, int name_len, const char *value, int value_len, bool &cacheable)
{
(yeah that's where the snippet cuts off in the original β we keep it exactly as it is, no editing the queen's handwriting π )
π₯ SEE ALSO π₯
π COPYRIGHT π
2026, dev@trafficserver.apache.org π
and that's the whole page bestie, periodt β¨ this was TSHTTPTXNISINTERNAL(3ts) from Apache Traffic Server, version 9.2, dated Feb 12, 2026 β go forth and vibe check your transactions πΈπ¦π
π¦ where this page comes from
- ubuntu noble: trafficserver-dev 9.2.3+ds-1+deb12u1ubuntu0.1 Β· Apache-2.0
- ubuntu questing: trafficserver-dev 9.2.5+ds-1ubuntu2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms