req
http get or post with timeout ( default 60 seconds )
use
import 'package:req/init.dart';
void main() async {
final r = await req.get('https://www.qq.com/robots.txt');
print(r.statusCode);
print(await r.text());
print('done');
}
http get or post with timeout ( default 60 seconds )
import 'package:req/init.dart';
void main() async {
final r = await req.get('https://www.qq.com/robots.txt');
print(r.statusCode);
print(await r.text());
print('done');
}