// http header · response header

Content-Encoding

Compression applied to the body

What the Content-Encoding header does

Content-Encoding names the compression applied to the response body, such as gzip or br. The client reverses it before reading the body. It's chosen from what the client offered in Accept-Encoding.

Example

Content-Encoding: gzip

Where it's used

Content-Encoding is a response header. Response headers are sent by the server to describe the response and tell the client how to handle it.

Other response headers