Skip to content

Allow PublicNode to do arbitrary API requests #60

@jasny

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.

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