How do I skip the processing of a response?

Asked by James H

The eCAP website says: that the proxy software "gets back an adapted message or a "not interested" response".

I only want to process HTML pages, so I don't want to incur the performance hit of collecting the virgin body for large binary and sending this virgin body as adapted content.

I know I can check the type of resource through the Content-Type header, but how do I send back this "not interested" response? Maybe using the same vbDiscard that we talked about in one of my previous messages? Where should I call (in what Xaction method - maybe in the start method?) vbDiscard? Should I do anything special after sending a vbDiscard?

Thanks,

James

Question information

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

If you are not interested in receiving the virgin message body and not interested in producing an adapted message, then you need to call useVirgin() and nothing else. Calling that method terminates the adaptation transaction.

Revision history for this message
James H (jules-verne) said :
#2

Thanks