Method HttpMessagePart() :setContentEncoding() Foundation

Defines the content encoding.

Syntax
 
:setContentEncoding( <cEncoding> ) --> self
Parameters
<cEncoding>
A character string with the name of the encoding. The following table lists the encodings currently supported.
Encodings supported by :setAcceptEncoding()
Name Description
gzip Compression format using the Lempel-Ziv coding (LZ77), with a 32-bit CRC
compress Compression format using the Lempel-Ziv-Welch (LZW) algorithm
deflate Compression format using the zlib structure, uses the deflate compression algorithm
br Compression format using the Brotli algorithm
identity No compression, no modification *)
  1. Default unless specified otherwise via :setContentEncoding()
Return

:setContentEncoding() returns the object executing the method.

Description

The method :setContentEncoding() specifies the encoding of the content of this message part object.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.