New in Symfony 4.2: Acceptable Request Formats

Contributed by Andrei Igna in #26486. The Accept HTTP header is added by browsers to their requests to advertise which content types they are able to understand. These content types are expressed as MIME types. The HttpFoundation component provides several utilities in its Request class to work with request formats and MIME types (such as…