0

I am receiving the request in my Rest API with headers as "Content-Encoding" as deflate. How to parse the request and make it a String in Java?

Please share any code reference to do the same.

headers: 'Accept-Encoding': 'deflate', 'Content-Encoding': 'deflate'

Siva Samraj
  • 37
  • 1
  • 5
  • Does this answer your question? [Handling HTTP ContentEncoding "deflate"](https://stackoverflow.com/questions/3932117/handling-http-contentencoding-deflate) – GreyBeardedGeek Jan 08 '22 at 20:26
  • BTW, while you _could_ handle this yourself, it's more common to a pub web server, such as Nginx or Apache in front of the app as a reverse proxy, and let the proxy handle it. – GreyBeardedGeek Jan 08 '22 at 20:27
  • Does your REST framework not handle this already? What behavior are you seeing that indicates a problem? – VGR Jan 09 '22 at 14:51

0 Answers0