trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject svn commit: r1125188 - in /trafficserver/traffic/trunk/proxy: InkAPI.cc api/ts/ts.h.in
Date Fri, 20 May 2011 00:15:25 GMT
Author: bcall
Date: Fri May 20 00:15:24 2011
New Revision: 1125188

URL: http://svn.apache.org/viewvc?rev=1125188&view=rev
Log:
TS-788 Cleaned up the request and response cacheable apis

Modified:
    trafficserver/traffic/trunk/proxy/InkAPI.cc
    trafficserver/traffic/trunk/proxy/api/ts/ts.h.in

Modified: trafficserver/traffic/trunk/proxy/InkAPI.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/InkAPI.cc?rev=1125188&r1=1125187&r2=1125188&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/InkAPI.cc (original)
+++ trafficserver/traffic/trunk/proxy/InkAPI.cc Fri May 20 00:15:24 2011
@@ -5002,21 +5002,21 @@ TSHttpTxnAborted(TSHttpTxn txnp)
 }
 
 void
-TSHttpTxnSetReqCacheableSet(TSHttpTxn txnp)
+TSHttpTxnReqCacheableSet(TSHttpTxn txnp, int flag)
 {
   sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS);
 
   HttpSM* sm = (HttpSM*)txnp;
-  sm->t_state.api_req_cacheable = true;
+  sm->t_state.api_req_cacheable = (flag != 0);
 }
 
 void
-TSHttpTxnSetRespCacheableSet(TSHttpTxn txnp)
+TSHttpTxnRespCacheableSet(TSHttpTxn txnp, int flag)
 {
   sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS);
 
   HttpSM* sm = (HttpSM*)txnp;
-  sm->t_state.api_resp_cacheable = true;
+  sm->t_state.api_resp_cacheable = (flag != 0);
 }
 
 int

Modified: trafficserver/traffic/trunk/proxy/api/ts/ts.h.in
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/api/ts/ts.h.in?rev=1125188&r1=1125187&r2=1125188&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/api/ts/ts.h.in (original)
+++ trafficserver/traffic/trunk/proxy/api/ts/ts.h.in Fri May 20 00:15:24 2011
@@ -2077,8 +2077,8 @@ extern "C"
   tsapi TSReturnCode TSHttpTxnServerRespGet(TSHttpTxn txnp, TSMBuffer* bufp, TSMLoc* offset);
   tsapi TSReturnCode TSHttpTxnCachedReqGet(TSHttpTxn txnp, TSMBuffer* bufp, TSMLoc* offset);
   tsapi TSReturnCode TSHttpTxnCachedRespGet(TSHttpTxn txnp, TSMBuffer* bufp, TSMLoc* offset);
-  tsapi void TSHttpTxnSetRespCacheableSet(TSHttpTxn txnp);
-  tsapi void TSHttpTxnSetReqCacheableSet(TSHttpTxn txnp);
+  tsapi void TSHttpTxnRespCacheableSet(TSHttpTxn txnp, int flag);
+  tsapi void TSHttpTxnReqCacheableSet(TSHttpTxn txnp, int flag);
   tsapi TSReturnCode TSFetchPageRespGet (TSHttpTxn txnp, TSMBuffer* bufp, TSMLoc* offset);
   tsapi char* TSFetchRespGet(TSHttpTxn txnp, int* length);
   tsapi TSReturnCode TSHttpTxnCacheLookupStatusGet(TSHttpTxn txnp, int* lookup_status);



Mime
View raw message