ChunkedCodingCodec class

A codec that encodes and decodes the chunked transfer coding.

The encoder creates a single chunked message for each call to ChunkedCodingEncoder.convert or ChunkedCodingEncoder.startChunkedConversion. This means that it will always add an end-of-message footer once conversion has finished. It doesn't support generating chunk extensions or trailing headers.

Similarly, the decoder decodes a single chunked message into a stream of byte arrays that must be concatenated to get the full list (like most Dart byte streams). It doesn't support decoding a stream that contains multiple chunked messages, nor does it support a stream that contains chunked data mixed with other types of data.

Currently, decoder will fail to parse chunk extensions and trailing headers. It may be updated to silently ignore them in the future.

Inheritance

Properties

decoder ChunkedCodingDecoder
Returns the decoder of this, converting from T to S.
no setteroverride
encoder ChunkedCodingEncoder
Returns the encoder from S to T.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
inverted Codec<List<int>, List<int>>
Inverts this.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(List<int> encoded) List<int>
Decodes encoded data.
inherited
encode(List<int> input) List<int>
Encodes input.
inherited
fuse<R>(Codec<List<int>, R> other) Codec<List<int>, R>
Fuses this with other.
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