Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ClientTimeout specifies a time limit for requests // made by the Client in seconds. ClientTimeout = 30 // UserAgent is the user agent header used for making // http requests. UserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36" )
Variables ¶
This section is empty.
Functions ¶
func GetAbsoluteURL ¶
GetAbsoluteURL retrieves the absolute URL of a full and relative URL. Returns errors.INVALID if the urls could not be parsed.
Types ¶
type Client ¶
type Client interface { // Do creates and performs single http Request using the // application default client. // // Returns errors.INTERNAL if the request could not be // performed. Do(URL, method string) (*Response, error) }
Client defines the single method interface for creating and performing requests.
Click to show internal directories.
Click to hide internal directories.