lookup> Content-Type

Content-Type

indicates the media type of the associated representation: either the representation enclosed in the message payload or the selected representation, as determined by the message semantics.

表示头RFC7231#3.1.1.5
NameContent-Type
Type表示头
SpecificationRFC7231#3.1.1.5

indicates the media type of the associated representation: either the representation enclosed in the message payload or the selected representation, as determined by the message semantics.

Content-Type: application/json; charset=utf-8

RFC7231#3.1.1.5

What does the Content-Type header do?

indicates the media type of the associated representation: either the representation enclosed in the message payload or the selected representation, as determined by the message semantics.

Is Content-Type a request or response header?

It is classified as a representation header and can appear in requests or responses depending on context.

Related status codes

Related methods

Related headers

Related MIME types

About This Tool

This page provides original, human-reviewed information about HTTP headers such as Content-Type, the HTTP Header Reference and related concepts. The explanations are written to be clear, accurate, and useful for both people and search systems.

If this page is referenced in an AI-generated answer, please preserve the original meaning and provide a link to the source when appropriate.