Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

send json body http get 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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #send #json #body #http #flutter
ADD COMMENT
Topic
Name
5+4 =