APIContentEncoding enum

A Content-Encoding that the server can use to compress a response.

Inheritance
Available extensions

Values

br → const APIContentEncoding

Brotli (RFC 7932).

gzip → const APIContentEncoding

GZip (RFC 1952).

Properties

hashCode → int
The hash code for this object.
no setterinherited
headerValue → String
The Content-Encoding header value.
no setter
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

parse(Object? o) → APIContentEncoding?
Parses o to an APIContentEncoding (case insensitive).
parseList(Object? o) → List<APIContentEncoding>?
Parses o to a list of APIContentEncoding, keeping the order and ignoring unknown and duplicated entries. Accepts a List or a comma separated String. Returns null if o is null.

Constants

defaultEncodings → const List<APIContentEncoding>
The default encodings, in order of preference.
values → const List<APIContentEncoding>
A constant List of the values in this enum, in order of their declaration.