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

TSHttpTxnIsCacheable - TSHttpTxnIsCacheable API function

Description

       Determine  if an upstream response is cacheable according to the current Traffic Server configuration and
       state. All of the arguments must have be obtained via other API calls prior to calling this function.

       The request and response arguments must refer to HTTP header objects. These are treated  as  the  request
       and response for a transaction respectively. Based on the transaction state from txnp and the contents of
       the request and response, this returns TS_SUCCESS if the response is cacheable, TS_ERROR otherwise.

Name

       TSHttpTxnIsCacheable - TSHttpTxnIsCacheable API function

Synopsis

          #include <ts/ts.h>

       TSReturnCodeTSHttpTxnIsCacheable(TSHttpTxntxnp,TSMBufferrequest,TSMBufferresponse)

See Also