What is the difference between media type, content type and type?

Is there a difference between mimetype, contenttype and mediatype? (Java JAX-RS MediaType ).

From the wikipedia article, I realized that this is only a content type in the context, for example, HTTP requests as a field in the request header: are these synonyms or are there any actual semantic differences between the various terms?

+42
content-type mime-types web
Feb 13 2018-12-12T00:
source share
2 answers

"(Internet) Media type is the correct technical term.

"Content-Type" is the name of the HTTP header field used to indicate the type of medium.

+31
Feb 14 '12 at 13:33
source share

Content-Type is the header of the HTTP message, and its value (usually) is a MIME type.

JAX-RS MediaType, apparently, is a Java rewrite for common MIME types.

+7
Feb 14 2018-12-12T00:
source share



All Articles