close method
Close the request for input. Returns the value of done.
Implementation
@override
Future<HttpClientResponse> close() async {
final fetchResponse = await fetch(
_resource,
body: _body != null ? Uint8List.fromList(_body!) : null,
headers: Headers((headers as HttpHeaders).toMap()),
method: method,
signal: _abortController.signal,
);
final response = HttpClientResponse(fetchResponse);
_doneCompleter.complete(response);
return response;
}