📜  发送 json body http get flutter - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:11.283000             🧑  作者: Mango

代码示例1
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);