📜  dart httop 客户端 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:03.339000             🧑  作者: Mango

代码示例2
var client = http.Client();
try {
  var uriResponse = await client.post('https://example.com/whatsit/create',
      body: {'name': 'doodle', 'color': 'blue'});
  print(await client.get(uriResponse.bodyFields['uri']));
} finally {
  client.close();
}