BaseHttpRequest constructor
BaseHttpRequest({
- HttpMethod method = HttpMethod.get,
- required String url,
- Map<
String, String> ? query, - HttpHeaders? headers,
- HttpBody? body,
- HttpExpectBody expectBody = HttpExpectBody.stream,
- CancelToken? cancelToken,
- ProgressCallback? onSendProgress,
- 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,
});