HttpRequest constructor

HttpRequest({
  1. RhttpClient? client,
  2. ClientSettings? settings,
  3. Interceptor? interceptor,
  4. HttpMethod method = HttpMethod.get,
  5. required String url,
  6. Map<String, String>? query,
  7. HttpHeaders? headers,
  8. HttpBody? body,
  9. HttpExpectBody expectBody = HttpExpectBody.stream,
  10. CancelToken? cancelToken,
  11. ProgressCallback? onSendProgress,
  12. ProgressCallback? onReceiveProgress,
})

Implementation

HttpRequest({
  this.client,
  this.settings,
  this.interceptor,
  super.method,
  required super.url,
  super.query,
  super.headers,
  super.body,
  super.expectBody,
  super.cancelToken,
  super.onSendProgress,
  super.onReceiveProgress,
});