HttpRestRequest constructor

HttpRestRequest({
  1. required Methods method,
  2. required String url,
  3. Type? requestConverterType,
  4. Type? responseConverterType,
  5. Map<String, String>? headers,
  6. dynamic body,
  7. Encoding? encoding,
  8. HttpRequestProgressListener? readProgressListener,
  9. HttpRequestProgressListener? writeProgressListener,
  10. int? writeChunkSize,
})

Implementation

HttpRestRequest({required this.method,
  required this.url,
  this.requestConverterType,
  this.responseConverterType,
  Map<String, String>? headers,
  this.body,
  this.encoding,
  this.readProgressListener,
  this.writeProgressListener,
  this.writeChunkSize
}) : headers = {...(headers ?? {})};