Client class abstract
Client for RESTful API
Constructors
- Client()
-
Create a Client
factory
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
-
close(
[bool force = false]) → void - Close the connection.
-
deleteAsync(
String url, [Map< String, String> ? headers]) → Future<Response> - DELETE
-
getAsync(
String url, [Map< String, String> ? headers]) → Future<Response> - GET
-
headAsync(
String url, [Map< String, String> ? headers]) → Future<Response> - HEAD
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
patchAsync(
String url, String content, ContentType contentType, [Map< String, String> ? headers]) → Future<Response> - PATCH
-
postAsync(
String url, String content, ContentType contentType, [Map< String, String> ? headers]) → Future<Response> - POST
-
putAsync(
String url, String content, ContentType contentType, [Map< String, String> ? headers]) → Future<Response> - PUT
-
sendAsync(
Request request) → Future< Response> -
Send a
request. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited