common/utils/http library

Functions

addQueryParamToProxy(Uri uri, String key, String value) Uri
getRequest(Uri url, {Map<String, String> headers = const {}, bool headless = false, bool debug = false, Uri? proxyUrl, bool cacheResponse = true}) Future<String?>
GET request to fetch data from URL
postRequest(Uri url, {Object? body, Map<String, String> headers = const {}, bool debug = false, Uri? proxyUrl, bool? cacheResponse}) Future<String?>
POST request to fetch data from URL