HttpConfig class

Constructors

HttpConfig({String baseURL = '', Map<String, String> headers = const {}, Duration timeout = const Duration(seconds: 10), CachePolicy cachePolicy = CachePolicy.NetworkFirst, bool logURL = true, bool logRequestHeader = false, bool logRespondHeader = false, bool logRespondBody = false, bool sendDebugId = false, bool enableAuthLock = false})

Properties

baseURL String
getter/setter pair
cachePolicy CachePolicy
getter/setter pair
enableAuthLock bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
getter/setter pair
logRequestHeader bool
getter/setter pair
logRespondBody bool
getter/setter pair
logRespondHeader bool
getter/setter pair
logURL bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendDebugId bool
getter/setter pair
timeout Duration
getter/setter pair

Methods

add(HttpOptionalConfig other) → void
clone() HttpConfig
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