BaseHttpRequest constructor

BaseHttpRequest({
  1. HttpMethod method = HttpMethod.get,
  2. required String url,
  3. Map<String, String>? query,
  4. HttpHeaders? headers,
  5. HttpBody? body,
  6. HttpExpectBody expectBody = HttpExpectBody.stream,
  7. CancelToken? cancelToken,
  8. ProgressCallback? onSendProgress,
  9. ProgressCallback? onReceiveProgress,
})

Implementation

BaseHttpRequest({
  this.method = HttpMethod.get,
  required this.url,
  this.query,
  this.headers,
  this.body,
  this.expectBody = HttpExpectBody.stream,
  this.cancelToken,
  this.onSendProgress,
  this.onReceiveProgress,
});