package
0.0.0-20211122204940-3aa76b92aec7
Repository: https://github.com/czarsimon/httputil.git
Documentation: pkg.go.dev
# Functions
DecodeJSON decodes a json response body into a value reciever.
DecodeText decodes a text/plain response body and returns it as a string.
HasStatus check if an error is a HTTPError with the specified status.
NewClient creates a new rpc client using the default implementation.
# Variables
Common errors.
# Structs
MockClient mock implementation of a client.
MockResponse mocked rpc response.
# Interfaces
Client rpc client interface for creating and executing requrests.
# Type aliases
MockResponses is a MockResponse map.