Accept Header
Learn Accept Header (HTTP Message Converters, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Accept is a request header that tells the server which response media types the client can handle, for example Accept: application/json . Quality values : q ranks choices, as in application/xml;q=0.5, application/json ; higher q wins and the default is 1.0. Server side : Spring compares Accept with the produces of mappings and the converters that can write the type.