package
0.0.0-20240908172838-7bcebe7d766f
Repository: https://github.com/evcc-io/evcc.git
Documentation: pkg.go.dev

# Functions

DontFollow is a redirect policy that does not follow redirects.
InterceptRedirect captures a redirect url parameter.
MarshalJSON marshals JSON into an io.ReadSeeker.
New builds and executes HTTP request and returns the response.
NewClient creates http client with default transport.
NewHelper creates http helper for simplified PUT GET logic.
NewTripper creates a logging roundtrip handler.
ReadBody reads HTTP response and returns error on response codes other than HTTP 2xx.
ResponseError turns an HTTP status code into an error.

# Variables

AcceptJSON accepting application/json.
AcceptXML accepting application/xml.
JSONEncoding specifies application/json.
Timeout is the default request timeout used by the Helper.
URLEncoding specifies application/x-www-form-urlencoded.
XMLEncoding specifies application/xml.

# Structs

Helper provides utility primitives.
StatusError indicates unsuccessful http response.

# Type aliases