Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart httop client

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();
}
Source by pub.dev #
 
PREVIOUS NEXT
Tagged: #dart #httop #client
ADD COMMENT
Topic
Name
3+3 =