MCPcopy
hub / github.com/assetnote/kiterunner / NewHTTPClient

Function NewHTTPClient

pkg/http/client.go:25–31  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

23// NewHTTPClient will create a http client configured specifically for requesting against the targetted host.
24// This is backed by the fasthttp.HostClient
25func 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
34type Config struct {

Calls

no outgoing calls