lookup> Content-Encoding

Content-Encoding

indicates what content codings have been applied to the representation, beyond those inherent in the media type, and thus what decoding mechanisms have to be applied in order to obtain data in the media type referenced by the Content-Type header field.

表示头RFC7231#3.1.2.2
NameContent-Encoding
Type表示头
SpecificationRFC7231#3.1.2.2

indicates what content codings have been applied to the representation, beyond those inherent in the media type, and thus what decoding mechanisms have to be applied in order to obtain data in the media type referenced by the Content-Type header field.

Content-Encoding: gzip

RFC7231#3.1.2.2

What does the Content-Encoding header do?

indicates what content codings have been applied to the representation, beyond those inherent in the media type, and thus what decoding mechanisms have to be applied in order to obtain data in the media type referenced by the Content-Type header field.

Is Content-Encoding a request or response header?

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

Related headers