Skip to content
Advertisement

How to intercept a request in Apache AsyncHttpClient?

Is there a way to intercept a request made by AsyncHttpClient and do some operations based on the request data.

I want to do something like this:

JavaScript

is something like this possible?

Advertisement

Answer

I did it using ‘filters’.

JavaScript

Similarly you can add a request filter

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement