Versions in this module Expand all Collapse all v0 v0.11.1 Aug 2, 2023 Changes in this version + const BearerAuthorization + var ErrClientError = errors.New("client error") + var ErrForbidden = errors.New("forbidden") + var ErrNoRedirection = errors.New("no redirection") + var ErrServerError = errors.New("server error") + var ErrUnauthorized = errors.New("unauthorized") + var HeaderAuthorization = http.CanonicalHeaderKey("Authorization") + var HeaderLocation = http.CanonicalHeaderKey("Location") + var HeaderUserAgent = http.CanonicalHeaderKey("User-Agent") + func Get(context Context, uri string, result interface{}) error + func GetLocation(context Context, uri string) (*url.URL, error) + func Patch(context Context, uri string, body interface{}, result interface{}) error + func Post(context Context, uri string, body interface{}, result interface{}) error + type Context interface + Endpoint func() string + Headers func() Headers + type Headers map[string]string + func NewHeaders() Headers + func (h Headers) Authorization(bearer string) Headers + func (h Headers) UserAgent(value string) Headers