I think TSHttpTxnCachedRespModifiableGet might be want you want. Unfortunately it doesn't seem to be documented. Looking at the code it looks like it works the same way as TSHttpTxnClientRespGet() in terms of return values but gets the copy that will be written to cache.
On Monday, November 14, 2016 9:49 AM, "kevinxu...@163.com" <kevinxu...@163.com> wrote: hi,all: I want to design a plugin to insert MD5 field in cached response header. I design a global plugin: 1. I add hook at TS_HTTP_READ_RESPONSE_HDR_HOOK 2. at event: TS_EVENT_HTTP_READ_RESPONSE_HDR, I create transform with TSTransformCreate Func, and add hook at TS_HTTP_RESPONSE_TRANSFORM_HOOK 3. at event:TS_EVENT_VCONN_WRITE_READY, I read data from upstream, compute MD5 and output data to downstream 4. when all the data read and MD5 have got, I set the MD5 value (first create a header field) into response header field (the process will be do in transform at compute MD5 step) the problem is the 4 step is not available, in fact,it does not set the MD5 value into response header! when I request the same URL , it hit cached , but the cached response header has not the MD5 field ! what happened about my design? how to do it? kevinxu...@163.com