1final queryParameters = {
2 'name': 'Bob',
3 'age': '87',
4};
5final uri = Uri.http('www.example.com', '/path', queryParameters);
6final headers = {HttpHeaders.contentTypeHeader: 'application/json'};
7final response = await http.get(uri, headers: headers);
8