HttpConfig class

dio 配置项

Constructors

HttpConfig({String? baseUrl, Map<String, dynamic>? headers, String? proxy, String? cookiesPath, List<Interceptor>? interceptors, int connectTimeout = Duration.millisecondsPerMinute, int sendTimeout = Duration.millisecondsPerMinute, int receiveTimeout = Duration.millisecondsPerMinute})

Properties

baseUrl String?
final
connectTimeout int
final
cookiesPath String?
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, dynamic>?
final
interceptors List<Interceptor>?
final
proxy String?
final
receiveTimeout int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendTimeout int
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