HttpClient class abstract

Abstraction over an HTTP client.

This class provides an abstraction over an HTTP client so that a different implementation can be provided on different platforms.

Constructors

HttpClient()
HttpClient.withLogger(Logger logger)
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

deleteAsync(String url, [HttpRequest? options]) Future<HttpResponse>
Issues an HTTP DELETE request to the specified URL, returning a Future that resolves with an HttpResponse representing the result.
getAsync(String url, [HttpRequest? options]) Future<HttpResponse>
Issues an HTTP GET request to the specified URL, returning a Future that resolves with an HttpResponse representing the result.
getCookieString(String url) String
Gets all cookies that apply to the specified URL.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postAsync(String url, [HttpRequest? options]) Future<HttpResponse>
Issues an HTTP POST request to the specified URL, returning a Future that resolves with an HttpResponse representing the result.
sendAsync(HttpRequest request) Future<HttpResponse>
Issues an HTTP request to the specified URL, returning a Future that resolves with an HttpResponse representing the result.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited