Skip to content

Allow PublicNode to do arbitrary API requests #60

Description

@jasny
  • 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions