HttpClientHelper class

Constructors

HttpClientHelper()

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
set(Client value) → void
toString() → String
Returns a string representation of this object.
inherited

Operators

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

Static Properties

httpClient → Client
read-only

Static Methods

close() → void
delete(dynamic url, {Map<String, String> headers, CancellationToken cancelToken, int retries = 3, Duration timeLimit, Duration timeRetry = const Duration(milliseconds: 100), OnTimeout onTimeout}) → Future<Response>
get(dynamic url, {Map<String, String> headers, CancellationToken cancelToken, int retries = 3, Duration timeLimit, Duration timeRetry = const Duration(milliseconds: 100), OnTimeout onTimeout}) → Future<Response>
patch(dynamic url, {Map<String, String> headers, dynamic body, Encoding encoding, CancellationToken cancelToken, int retries = 3, Duration timeLimit, Duration timeRetry = const Duration(milliseconds: 100), OnTimeout onTimeout}) → Future<Response>
post(dynamic url, {Map<String, String> headers, dynamic body, Encoding encoding, CancellationToken cancelToken, int retries = 3, Duration timeLimit, Duration timeRetry = const Duration(milliseconds: 100), OnTimeout onTimeout}) → Future<Response>
put(dynamic url, {Map<String, String> headers, dynamic body, Encoding encoding, CancellationToken cancelToken, int retries = 3, Duration timeLimit, Duration timeRetry = const Duration(milliseconds: 100), OnTimeout onTimeout}) → Future<Response>
read(dynamic url, {Map<String, String> headers, CancellationToken cancelToken, int retries = 3, Duration timeLimit, Duration timeRetry = const Duration(milliseconds: 100), OnTimeout onTimeout}) → Future<String>
readBytes(dynamic url, {Map<String, String> headers, CancellationToken cancelToken, int retries = 3, Duration timeLimit, Duration timeRetry = const Duration(milliseconds: 100), OnTimeout onTimeout}) → Future<Uint8List>
send(BaseRequest request, {CancellationToken cancelToken, int retries = 3, Duration timeLimit, Duration timeRetry = const Duration(milliseconds: 100), OnTimeout onTimeout}) → Future<StreamedResponse>