Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetUserAgent ¶ added in v0.11.4
func SetUserAgent(ua string)
SetUserAgent sets the default User-Agent header sent by all requests. It can be called more than once; the last value wins.
Types ¶
type HttpError ¶
type HttpError struct {
Error string `json:"error"`
ErrorDescription string `json:"error_description"`
Status int
}
HttpError is a type for returning the server's error response including its status code
Click to show internal directories.
Click to hide internal directories.