jersey.api.client.WebResource - how to debug/log the request headers
12,573
You can use LoggingFilter, as shown here
Author by
Shai Ben-Yehuda
Updated on June 05, 2022Comments
-
Shai Ben-Yehuda almost 2 years
I am using jersey to generate http requests and I would like to be able to see the request before it is sent (for debugging purposes).
For example:
WebResource resource = client.resource(url); resource.header("aa", "bb"); resource.getHeaders(); // Error: how can I do it?
thanks