Skip to content
New issue

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

Allow PublicNode to do arbitrary API requests #60

Open
1 of 3 tasks
jasny opened this issue Feb 8, 2022 · 0 comments
Open
1 of 3 tasks

Allow PublicNode to do arbitrary API requests #60

jasny opened this issue Feb 8, 2022 · 0 comments

Comments

@jasny
Copy link
Member

jasny commented Feb 8, 2022

  • Rename wrapper method to request. Remove the host parameter. Add a method parameter (as first argument).
  • Add get, post, and delete methods that simply call request.
  • Check the content-type of the response. If it's not application/json, do not try to parse it as json.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant