HttpClientHelper class Null safety

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
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(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?>