package
2.12.0+incompatible
Repository: https://github.com/adguardteam/adguarddns.git
Documentation: pkg.go.dev

# Functions

CheckStatus returns a non-nil error with the data from resp if the status code in resp is not equal to expected.
NewClient returns a new client.
ParseHTTPURL parses an absolute URL and makes sure that it is a valid HTTP(S) URL.
UserAgent returns the ID of the service as a User-Agent string.
WrapServerError wraps err inside a *ServerError including data from resp.

# Constants

HTTP header value constants.
HTTP header value constants.
HTTP header value constants.
HTTP header value constants.
HTTP header value constants.
HTTP header value constants.
HTTP header value constants.
RobotsDisallowAll is a predefined robots disallow all content.

# Structs

Client is a wrapper around http.Client.
ClientConfig is the configuration structure for Client.
ServerError is returned as general error in case header Server was specified.
StatusError is returned by methods when the HTTP status code is different from the expected.