HttpClient class abstract

Http client

It is used to make http requests.

It can be implemented using any http client like http, dio etc.

Implementers

Constructors

HttpClient()

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

delete<T>(String path, {Map<String, dynamic>? queryParameters, Map<String, dynamic>? headers}) → Future<HttpResponse<T>>
Perform a DELETE request
get<T>(String path, {Map<String, dynamic>? queryParameters, Map<String, dynamic>? headers}) → Future<HttpResponse<T>>
Perform a GET request
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch<T>(String path, {dynamic data, Map<String, dynamic>? queryParameters, Map<String, dynamic>? headers}) → Future<HttpResponse<T>>
Perform a PATCH request
post<T>(String path, {dynamic data, Map<String, dynamic>? queryParameters, Map<String, dynamic>? headers}) → Future<HttpResponse<T>>
Perform a POST request
put<T>(String path, {dynamic data, Map<String, dynamic>? queryParameters, Map<String, dynamic>? headers}) → Future<HttpResponse<T>>
Perform a PUT request
toString() → String
A string representation of this object.
inherited

Operators

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