KHttpConfig constructor

KHttpConfig(
  1. String baseUrl,
  2. IThrowHandler throwHandler, {
  3. Map<String, dynamic>? headers,
  4. String? cookiesPath,
  5. String? cachePath,
  6. bool showLog = true,
  7. Duration? connectTimeout,
  8. Duration? receiveTimeout,
  9. Duration? sendTimeout,
  10. int successCode = 1,
})

Implementation

KHttpConfig(
  this.baseUrl,
  this.throwHandler, {
  this.headers,
  this.cookiesPath,
  this.cachePath,
  this.showLog = true,
  this.connectTimeout,
  this.receiveTimeout,
  this.sendTimeout,
  this.successCode = 1,
}) {
  KHttpPlatform.get.throwHandler = throwHandler;
}