访问HTTP并获取返回内容
Read the response body using the read()
function defined in the http Pub package.
import 'package:http/http.dart' as http;
main() async {
print(await http.read("http://www.google.com/"));
}
Read the response body using the read()
function defined in the http Pub package.
import 'package:http/http.dart' as http;
main() async {
print(await http.read("http://www.google.com/"));
}