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({PayloadCodec codec = const PayloadCodec(), HttpHandler handler = const DisposableHandler()})
-
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