NewHTTPClient will create a http client configured specifically for requesting against the targetted host. This is backed by the fasthttp.HostClient
(host string, tls bool)
| 23 | // NewHTTPClient will create a http client configured specifically for requesting against the targetted host. |
| 24 | // This is backed by the fasthttp.HostClient |
| 25 | func NewHTTPClient(host string, tls bool) *HTTPClient { |
| 26 | return &HTTPClient{ |
| 27 | Addr: host, |
| 28 | IsTLS: tls, |
| 29 | TLSConfig: defaultTLSConfig, |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | // Config provides all the options available to a request, this is used by DoClient |
| 34 | type Config struct { |
no outgoing calls