HttpClientHelper class

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

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

Static Properties

httpClient Client
no setter

Static Methods

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