go method
Executes the HTTP request and returns a Future with the response.
Example:
final response = await client.get('https://example.com').go();
print('Status Code: ${response.statusCode}');
Implementation
Future<HttpClientResponse> go() async {
await _request.close().then((HttpClientResponse response) {
_responseCompleter.complete(response);
});
return _responseCompleter.future;
}