Ubuntu Manpages

TSHttpIsInternalRequest

test whether a request is internally-generated

#include <ts/ts.h>



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

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

Both these APIs returns a TSReturnCode, indicating whether the object was internal (TS_SUCCESS) or not (TS_ERROR).

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

}
static bool
addSendResponseHeaderHook(TSHttpTxn txnp, const ContData *src_cont_data)


TSAPI(3ts)

2014, dev@trafficserver.apache.org