Re: how to design and write a plugin to insert MD5 field in cached response header

2016-11-14 Thread Alan Carroll
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, Novemb

how to design and write a plugin to insert MD5 field in cached response header

2016-11-14 Thread kevinxu...@163.com
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_TR