Client class
A basic JSON:API client.
The JSON:API Request is converted to HttpRequest and sent downstream
using the _handler
. Received HttpResponse is then converted back to
JSON:API Response
. JSON conversion is performed by the codec
.
Constructors
- Client(Handler _handler, {PayloadCodec codec = const PayloadCodec()})
-
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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
Uri uri, Request request) → Future< Response> -
Sends the
request
to the givenuri
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited