EasyHttpConfig class

Class used to set http client config

Constructors

EasyHttpConfig({required String identifier, required String apiPath, dynamic headers, dynamic timeOut = 30 * 1000, dynamic validStatus = 204, dynamic followRedirect = false, dynamic includeLogger = true})
Model that is requested when initializing the package.

Properties

apiPath String
Base URL of your service
getter/setter pair
followRedirect bool?
If you want to follow the redirects. By default is false
finalinherited
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, dynamic>
Headers you want to include in your queries
getter/setter pairinherited
identifier String
Label (name) to identifier API path
getter/setter pair
includeLogger bool?
If you want a log of the query you are doing at that time to be displayed.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeOut int?
Timeout to request data from the server
finalinherited
validStatus int?
Valid status code for the request to be interpreted as complete or incomplete.
finalinherited

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