We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
Future<http.Response> request(String method, String url, {dynamic body, dynamic headers}) async { Map<String, String> headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', 'Auth0-Client': this.encodedTelemetry() }; if (bearer != null) { headers['Authorization'] = this.bearer; } Map<String, Future<http.Response>> handler = { 'POST': http.post(Uri.parse(url), body: Map.from((body ?? {}))), 'GET': http.get(Uri.parse(url), headers: headers), 'PATCH': http.patch(Uri.parse(url), body: Map.from((body ?? {}))), }; http.Response uriResponse; try { uriResponse = await handler[method]; } catch (e) { print(e); } return uriResponse; }
uriResponse = await handler[method]; Sends three requests and returns the result of the desired
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: