HttpConfig constructor

HttpConfig({
  1. String baseURL = '',
  2. Map<String, String> headers = const {},
  3. Duration timeout = const Duration(seconds: 10),
  4. CachePolicy cachePolicy = CachePolicy.NetworkFirst,
  5. bool logURL = true,
  6. bool logRequestHeader = false,
  7. bool logRespondHeader = false,
  8. bool logRespondBody = false,
  9. bool sendDebugId = false,
  10. 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 = {};
}