Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeaderLink ¶
HeaderLink parse the Github Header Link to "next"/"last"/"first"/"prev" link of repositories. Example: HeaderLink(link,"next") or HeaderLink(link, "prev") or HeaderLink(link,"last").
Types ¶
type HTTPResponse ¶
type HTTPResponse struct { Body []byte Status ResponseStatus Headers http.Header }
HTTPResponse wraps body, Status and Headers from the http.Response.
func GetURL ¶
func GetURL(URL string, headers map[string]string) (HTTPResponse, error)
GetURL retrieves data, status and response headers from an URL. It uses some technique to slow down the requests if it get a 429 (Too Many Requests) response.
type ResponseStatus ¶
ResponseStatus contains the status and statusCode of a response.
Click to show internal directories.
Click to hide internal directories.