HttpConfig constructor

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

Implementation

HttpConfig(
  this.baseUrl,
  this.throwHandler, {
  this.headers,
  this.cookiesPath,
  this.cachePath,
  this.showLog = true,
  this.connectTimeout = 5000,
  this.receiveTimeout = 5000,
  this.sendTimeout = 5000,
}) {
  HttpPlatform.get.throwHandler = throwHandler;
}