访问HTTP并获取返回内容

Android社区 收藏文章

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/"));
}
相关标签

扫一扫

在手机上阅读