This example uses packages/dio.
See the output in browser developer console.
Actual code:
import 'package:dio/dio.dart'; final dio = Dio(); Response response = await dio.get('https://httpbin.org/anything'); print(response);