AcceptEncodingHeader class final

A class representing the HTTP Accept-Encoding header.

This header specifies the content encoding that the client can understand.

Constructors

AcceptEncodingHeader.encodings(List<EncodingQuality> encodings)
Constructs an instance with the given encodings
AcceptEncodingHeader.parse(Iterable<String> values)
Parses the Accept-Encoding header value and returns an AcceptEncodingHeader instance
factory
AcceptEncodingHeader.wildcard()
Constructs an instance with a wildcard encoding
const

Properties

encodings List<EncodingQuality>
The list of encodings that are accepted
no setter
hashCode int
The hash code for this object.
no setterinherited
isWildcard bool
A boolean value indicating whether the header is a wildcard
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<EncodingQuality>
The list of values that are accepted
finalinherited

Methods

encode(String encodeElement(EncodingQuality)) Iterable<String>
Converts the header instance into a string representation suitable for HTTP headers
inherited
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

encodeHeader(AcceptEncodingHeader header) List<String>

Constants

codec → const HeaderCodec<AcceptEncodingHeader>