synic
synic

Reputation: 26678

HttpClient - supporting gzip

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

Answers (1)

Peter Tillemans
Peter Tillemans

Reputation: 35341

One of the HttpClient examples shows how to do this : see custom protocol interceptors.

Upvotes: 1

Related Questions