Last updated:
0 purchases
ok http dart
A wrapper for dart http package for easier usage mainly for webscraping and personal use
A wrapper for dart http package for easier usage mainly for webscraping and personal use
Features #
webscraping tools
json parsing using your custom fromJson method
Getting started #
create a OkHttpClient Instance
final OkHttpClient client = OkHttpClient();
copied to clipboard
Usage #
now you can make requests using that instance
void main(List<String> args) async {
final request =
await client.get('https://jsonplaceholder.typicode.com/posts', headers: {'User-Agent':
'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0'});
print(request.text);
print(request.statusCode);
print(request.success);
print(request.json());
}
copied to clipboard
Additional information #
TODO: ye
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.