Answers for "pub http"

0

http pub

flutter pub add http
Posted by: Guest on May-31-2021
0

pub http

import 'package:http/http.dart' as http;

var url = 'https://example.com/whatsit/create';
var response = await http.post(url, body: {'name': 'doodle', 'color': 'blue'});
print('Response status: ${response.statusCode}');
print('Response body: ${response.body}');

print(await http.read('https://example.com/foobar.txt'));
Posted by: Guest on November-20-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language