This example uses packages/http.
See the output in browser developer console.
Actual code:
import 'package:http/http.dart' as http; final resp = await http.get(Uri.parse('https://httpbin.org/anything')); print('body: ${resp.body}');