KHttpConfig class

http 配置信息

Constructors

KHttpConfig(String baseUrl, IThrowHandler throwHandler, {Map<String, dynamic>? headers, String? cookiesPath, String? cachePath, bool showLog = true, Duration? connectTimeout, Duration? receiveTimeout, Duration? sendTimeout, int successCode = 1})

Properties

baseUrl → String
final
cachePath → String?
final
connectTimeout → Duration?
final
cookiesPath → String?
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, dynamic>?
final
receiveTimeout → Duration?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sendTimeout → Duration?
final
showLog → bool
final
successCode → int
final
throwHandler → IThrowHandler
final

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