HTTP class
custom HTTP class
Properties
- client ↔ Client
-
The main client object
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- restRetryLimit ↔ int
-
5xx Server Errors retry limit
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delete(
{required String url, required Map< String, dynamic> headers, dynamic body}) → Future<HttpResponse> - delete request
-
get(
{required String url, required Map< String, dynamic> headers}) → Future<HttpResponse> - get request
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
{required String url, required Map< String, dynamic> headers, dynamic body}) → Future<HttpResponse> - post request
-
put(
{required String url, required Map< String, dynamic> headers, dynamic body}) → Future<HttpResponse> - put request
-
send(
{required String method, required String url, required Map< String, dynamic> headers, dynamic body, dynamic status, ResponseType responseType = ResponseType.json, int retries = 0}) → Future<HttpResponse> - Send request
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited