Client class

Client for RESTful API

Constructors

Client()
factory

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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 non-existent 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