简体   繁体   中英

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

HttpClient示例之一显示了如何执行此操作:请参阅自定义协议拦截器。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM