Is it possible to realize a light weight "resp_add_header" in libecap?

Asked by Thomas

Hello,

In some case we only use liebcap service to add a header "X-Acceleration-Vary: X-Custom-header".
I copied the code from sample code "adapter_passthru.cc" and add the http header. But these days I find the "adapter_passthru.cc" also process all content body.
Is it possible to realize a light weight "resp_add_header" in libecap, it only process http header, do not process the content body?

Thanks in advance.
Thomas.

Question information

Language:
English Edit question
Status:
Solved
For:
eCAP Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Rousskov
Solved:
Last query:
Last reply:
Revision history for this message
Best Alex Rousskov (rousskov) said :
#1

Unfortunately, there is currently no API to tell the host transaction that it should use the adapted message headers with the virgin message body. There is probably enough demand for an optimization like this to add the corresponding eCAP API for it.

Moreover, ICAP has a fairly detailed (albeit expired) internet draft about such combinations (which are not supported by the base ICAP protocol either). Look for use-original-body in
http://www.icap-forum.org/documents/specification/draft-icap-ext-partial-content-07.txt

Revision history for this message
Thomas (chunbo-zhao) said :
#2

Thanks Alex Rousskov, that solved my question.