KeepAliveHttpPoster class

One long-lived HttpClient (HTTP keep-alive, connection reuse). Recreated after an I/O error.

Constructors

KeepAliveHttpPoster()

Properties

created ↔ int
Number of HTTP clients created so far (a new one is created after an I/O error).
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(Uri url, Map<String, String> headers, String body, Duration timeout) → Future<int>
POSTs body to url and returns the HTTP status code.
close() → void
Closes the current client; a new one is created on the next call.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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