isolate_http 1.0.0 isolate_http: ^1.0.0 copied to clipboard
IsolateHttp provides a way to launch 'http' library in Isolate with IsolatesFlutter.
IsolateHttp #
IsolateHttp provides a way to launch http package with IsolateFlutter.
Usage #
Performing a GET
request:
final _response = await IsolateHttp().get('https://example.com/product',
headers: {'Authorization': 'abc='});
print(_response);
Performing a POST
request:
final _response = await IsolateHttp().post('https://example.com/product',
headers: {'Authorization': 'abc='},
body: {'size': 'XL', 'price': 236},
files: [
HttpFile.fromPath('files', 'path/image_1.png')
]);
print(_response);
Performing a DELETE
request:
final _response = await IsolateHttp().delete('https://example.com/product/1',
headers: {'Authorization': 'abc='});
print(_response);
Author #
IsolateHttp is developed by Thong Dang. You can contact me at thongdn.it@gmail.com
If you like my project, you can support me or star (like) for it.
Thank you! ❤️