访问HTTP并获取返回内容

1713次阅读  |  发布于5年以前

访问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/"));
}

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8