Content-Encoding

E200847

Content-Encoding is an HTTP header that specifies the compression or transformation applied to the body of a message so that recipients know how to decode it.

All labels observed (1)

Label Occurrences
Content-Encoding canonical 2

How this entity was disambiguated

Statements (47)

Predicate Object
instanceOf HTTP header field
appliesTo HTTP message body
HTTP request
HTTP response
canAffect Content-Length value
caseInsensitive true
defaultBehavior absence means no additional content coding beyond identity
definedIn RFC 7231
RFC 9110
distinguishedFrom Transfer-Encoding which applies to message framing
example Content-Encoding: br
Content-Encoding: deflate
Content-Encoding: gzip
Content-Encoding: gzip, br
governedBy HTTP content negotiation
hasCategory representation header field
headerName Content-Encoding
introducedIn HTTP/1.0 extensions
mustNotConflictWith Transfer-Encoding semantics
partOf HTTP protocol
performanceImpact reduces bandwidth at cost of CPU for compression and decompression
processingOrder codings are listed in the order in which they were applied
processingRequirement recipient must decode in reverse order of codings listed
purpose allow recipient to know how to decode the message body
indicate what content codings have been applied to the representation
redefinedBy HTTP Semantics specification
relatedTo Accept-Encoding
Content-Length
Content-Type
Transfer-Encoding
requires recipient support for the indicated content codings
scope applies only to the enclosed representation
securityConsideration can be involved in compression side-channel attacks
semantics describes the content codings applied to the payload representation
standardizedIn HTTP/1.1
syntax Content-Encoding: <coding1>, <coding2>, ...
typicalUse compress HTTP responses to reduce payload size
signal that a response body is compressed with gzip
usedFor compression
transformation of message body
usedWith br content coding
compress content coding
deflate content coding
gzip content coding
identity content coding
valueType list of content codings
visibility intermediaries may add or remove content codings

How these facts were elicited

Referenced by (2)

Full triples — surface form annotated when it differs from this entity's canonical label.

RFC 7231 definesHeaderField Content-Encoding
RFC 2068 definesHeaderField Content-Encoding