ApiErrorHttpClient class
Helper class for monitoring HTTP package requests
Constructors
- ApiErrorHttpClient({Client? client, required ApiErrorMonitor errorMonitor})
Properties
- errorMonitor → ApiErrorMonitor
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → void - Close the underlying HTTP client
-
delete(
Uri url, {Map< String, String> ? headers, Object? body, Encoding? encoding, dynamic fromJsonCallback(dynamic data)?}) → Future<Response> - Delete request with error monitoring
-
get(
Uri url, {Map< String, String> ? headers, dynamic fromJsonCallback(dynamic data)?}) → Future<Response> - Get request with error monitoring
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
Uri url, {Map< String, String> ? headers, Object? body, Encoding? encoding, dynamic fromJsonCallback(dynamic data)?}) → Future<Response> - Post request with error monitoring
-
put(
Uri url, {Map< String, String> ? headers, Object? body, Encoding? encoding, dynamic fromJsonCallback(dynamic data)?}) → Future<Response> - Put request with error monitoring
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited