flutter http get request body code example
Example 1: flutter http
dependencies:
http: ^0.12.0+4
Example 2: can we send raw json in get method in flutter
final queryParameters = {
'name': 'Bob',
'age': '87',
};
final uri = Uri.http('www.example.com', '/path', queryParameters);
final headers = {HttpHeaders.contentTypeHeader: 'application/json'};
final response = await http.get(uri, headers: headers);
Example 3: http package flutter
dependencies:
http: ^0.12.1