HttpConfig constructor
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,
Implementation
HttpConfig({
this.baseURL = '',
this.headers = const {},
this.timeout = const Duration(seconds: 10),
this.cachePolicy = CachePolicy.NetworkFirst,
this.logURL = true,
this.logRequestHeader = false,
this.logRespondHeader = false,
this.logRespondBody = false,
this.sendDebugId = false,
this.enableAuthLock = false,
}) {
headers = {};
}