HtpioRequest<T> constructor

HtpioRequest<T>({
  1. required String url,
  2. String method = 'GET',
  3. dynamic body,
  4. bool cacheEnabled = false,
  5. Duration? timeout,
  6. Map<String, String>? headers,
  7. T fromJson(
    1. Map<String, dynamic>
    )?,
  8. File? file,
  9. List<File>? files,
})

Implementation

HtpioRequest({
  required this.url,
  this.method = 'GET',
  this.body,
  this.cacheEnabled = false,
  this.timeout,
  Map<String, String>? headers,
  this.fromJson,
  this.file,
  this.files,
}) : headers = headers ?? {};