import 'dart:convert';
import 'dart:io';
final url = Uri.http('127.0.0.1', '');
Future<void> main() async {
final httpClient = HttpClient();
httpClient.findProxy = null;
final req = await httpClient.getUrl(url);
final res = await req.close();
// await res.transform(utf8.decoder).join();
httpClient.close();
print('end of main');
}
The program will not terminate if the line is commented out. Should we read the response body anyway if it is not important, or discard it somehow?