Reputation: 26678
Is it easy to add gzip support to an existing codebase? This is a string based (JSON) API, where the client just makes a requests and parses the JSON data returned. It'd be great if I could add gzip support to this.
I'm using HttpClient 4.x
Upvotes: 1
Views: 3221
Reputation: 35341
One of the HttpClient examples shows how to do this : see custom protocol interceptors.
Upvotes: 1