TSHttpIsInternalRequest
test whether a request is internally-generated
- Provided by: trafficserver-dev (Version: 5.3.0-2ubuntu2)
- Source: trafficserver
- Report a bug
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)
2014, dev@trafficserver.apache.org