EasyHttp class

A easy to use HTTP package based on the http package

Constructors

EasyHttp()

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 Methods

delete<T>(String url, {Map<String, dynamic>? body, Map<String, String>? headers, int maxRetry = 3, int retryDelay = 1, ContentType? contentType, ResponseBodyType responseBodyType = ResponseBodyType.string}) Future<EasyHttpResponse<T>?>
get<T>(String url, {Map<String, String>? headers, int maxRetry = 3, int retryDelay = 1, ResponseBodyType responseBodyType = ResponseBodyType.string}) Future<EasyHttpResponse<T>?>
getContentTypeString(ContentType? contentType) String
Returns the appropriate content type string for the given ContentType enum
post<T>(String url, {Map<String, dynamic>? body, Map<String, String>? headers, int maxRetry = 3, int retryDelay = 1, ContentType? contentType, ResponseBodyType responseBodyType = ResponseBodyType.string}) Future<EasyHttpResponse<T>?>
put<T>(String url, {Map<String, dynamic>? body, Map<String, String>? headers, int maxRetry = 3, int retryDelay = 1, ContentType? contentType, ResponseBodyType responseBodyType = ResponseBodyType.string}) Future<EasyHttpResponse<T>?>