Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FastestURL ¶
type FastestURL struct { // an http client to use for all requests Client *http.Client // a list of urls we will concurrecntly attempt to request URLs []*url.URL // a template request object we will copy fields from Request *http.Request // a function provided by the caller to determine if a request // should be returned RespCheck RespCheck }
FatestURL implements a method for obtaining the first *http.Response object returned from a list of URLs.
Click to show internal directories.
Click to hide internal directories.