Skip to content
Advertisement

Spring HttpInputMessage encoding

Is there any way to get the content encoding from the [HttpInputMessage][1] into a HttpMessageConverter? I browsed the documentation but I cannot find any relevant info.

Advertisement

Answer

I’m not sure I understand exactly what you want. If by encoding you mean the Content-Encoding or Content-Type header, then all you have to do is

JavaScript
Advertisement