Reputation: 595
whenever I try to use http request the response doesn't contain the full body of the page , am I doing something wrong ?!
import 'package:http/http.dart' as http;
Future<void> request() async {
var response = await http.get("http://www.example.com/");
print(response.body);
}
Upvotes: 1
Views: 232
Reputation: 3777
If you are checking it in you console then the buffer limit has reached that's why you are not able to see the output. May be you should check the size of the response body later if it matches the original response then you will get the idea.
let me know if its working.
Thanks.
Upvotes: 1