ResponseConverter<B, H> class final

Converter to transform a http.Response into a DynamiteResponse.

Throws a DynamiteApiException on errors.

Mixed-in types

Constructors

ResponseConverter(DynamiteSerializer<B, H> serializer)
Creates a new response converter
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serializer DynamiteSerializer<B, H>
The serializer to convert the raw header and body into B and H.
final

Methods

bind(Stream<Response> stream) Stream<DynamiteResponse<B, H>>
Transforms the provided stream.
inherited
cast<RS, RT>() Converter<RS, RT>
Provides a Converter<RS, RT> view of this stream transformer.
inherited
convert(Response input) DynamiteResponse<B, H>
Converts input and returns the result of the conversion.
override
fuse<TT>(Converter<DynamiteResponse<B, H>, TT> other) Converter<Response, TT>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startChunkedConversion(Sink<DynamiteResponse<B, H>> sink) Sink<Response>
Starts a chunked conversion.
inherited
toString() String
A string representation of this object.
inherited

Operators

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