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();
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());
}
Additional information
TODO: ye