ResponseConverter<B, H> class
final
Converter to transform a http.Response
into a DynamiteResponse.
Throws a DynamiteApiException on errors.
- Mixed-in types
-
- Converter<
Response, DynamiteResponse< B, H> >
- Converter<
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
andH
.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< other) → Converter<B, H> , TT>Response, TT> -
Fuses
this
withother
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startChunkedConversion(
Sink< DynamiteResponse< sink) → Sink<B, H> >Response> -
Starts a chunked conversion.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited