ContentEncodingHeader class final
A class representing the HTTP Content-Encoding header.
This class manages content encodings such as gzip, compress, deflate,
br, and identity. It provides functionality to parse and generate
content encoding header values.
Constructors
-
ContentEncodingHeader.encodings(List<
ContentEncoding> encodings) - Constructs a ContentEncodingHeader instance with the specified content encodings.
-
ContentEncodingHeader.parse(Iterable<
String> values) -
Parses the Content-Encoding header value and returns a
ContentEncodingHeader instance.
factory
Properties
-
encodings
→ List<
ContentEncoding> -
A list of content encodings.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
containsEncoding(
ContentEncoding encoding) → bool - Checks if the Content-Encoding contains a specific encoding.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
-
codec
→ const HeaderCodec<
ContentEncodingHeader>