3b3d612f8a0014a6c53e30b46ff09115ba5df16b
[mdref/mdref-http] / http / Env / Response / setContentEncoding.md
1 # http\Env\Response http\Env\Response::setContentEncoding(int $content_encoding)
2
3 Enable support for "Accept-Encoding" requests with deflate or gzip.
4 The response will be compressed if the client indicates support and wishes that.
5
6 ## Params:
7
8 * int $content_encoding
9 See http\Env\Response::CONTENT_ENCODING_* constants.
10
11 ## Returns:
12
13 * http\Env\Response, self.