Dimension: MIME Type

Description
If a user has a preference or can only process a specific MIME type [1], in HTTP the user can express it using the Accept header. The syntax of the header is:
Accept = ( media-range [ accept-params ] )
media-range = ( "*/*"
/ ( type "/" "*" )
/ ( type "/" subtype )
) *( OWS
";" OWS parameter ) accept-params = weight *( accept-ext )
accept-ext = OWS ";" OWS token [ "=" ( token / quoted-string ) ]

Use cases

Examples
As example in the use case Multiple formats and multilingual site., the client sends the request:
curl --location --request GET 'www.museum.example.com/artwork/45' \ --header 'Accept: text/html;q=0.9, image/png;q=0.7,image/svg+xml;q=0.8'
And the server answer with the response:
HTTP/1.1 200 OK
Content-Type: text/html
Vary: Accept
Content-Length: 2487 ...

References
  • [47]: Hypertext transfer protocol (HTTP/1.1): Semantics and content.