MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / NewClient

Function NewClient

http/client_factory.go:12–17  ·  view source on GitHub ↗

NewClient creates a new HTTP client with the given configuration.

(
	config config.HTTPClientConfiguration,
	logger log.Logger,
)

Source from the content-addressed store, hash-verified

10
11// NewClient creates a new HTTP client with the given configuration.
12func NewClient(
13 config config.HTTPClientConfiguration,
14 logger log.Logger,
15) (Client, error) {
16 return NewClientWithHeaders(config, logger, nil, false)
17}
18
19// NewClientWithHeaders creates a new HTTP client with added extra headers.
20func NewClientWithHeaders(

Callers 2

createFlowMethod · 0.92
NewWebhookClientFunction · 0.92

Calls 1

NewClientWithHeadersFunction · 0.85

Tested by

no test coverage detected