HttpBaseClient class abstract

A abstract class to handle http requests

Constructors

HttpBaseClient()

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

checkInternetConnection Future<bool>
To check internet connection
no setter

Static Methods

delete(Uri uri, {Map<String, String>? headers = const {"Accept" : "application/json", "Content-Type" : "application/x-www-form-urlencoded"}, Object? requestBody}) Future<HttpBaseClientResponse>
To make a delete request
get(Uri uri, {Map<String, String>? headers = const {"Accept" : "application/json", "Content-Type" : "application/x-www-form-urlencoded"}}) Future<HttpBaseClientResponse>
To make a get request
patch(Uri uri, {Map<String, String>? headers = const {"Accept" : "application/json", "Content-Type" : "application/x-www-form-urlencoded"}, Object? requestBody}) Future<HttpBaseClientResponse>
To make a patch request
post(Uri uri, {Map<String, String>? headers = const {"Accept" : "application/json", "Content-Type" : "application/x-www-form-urlencoded"}, Object? requestBody}) Future<HttpBaseClientResponse>
To make a post request
put(Uri uri, {Map<String, String>? headers = const {"Accept" : "application/json", "Content-Type" : "application/x-www-form-urlencoded"}, Object? requestBody}) Future<HttpBaseClientResponse>
To make a put request