views:

41

answers:

1

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

+1  A: 

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

Peter Tillemans