MCPcopy Index your code
hub / github.com/DoNewsCode/core / WithClientOption

Function WithClientOption

clihttp/dependency_option.go:28–32  ·  view source on GitHub ↗

WithClientOption instructs the Providers to accept additional options for the NewClient call, such as WithRequestLogThreshold.

(options ...Option)

Source from the content-addressed store, hash-verified

26// WithClientOption instructs the Providers to accept additional options for the
27// NewClient call, such as WithRequestLogThreshold.
28func WithClientOption(options ...Option) ProvidersOptionFunc {
29 return func(providerOption *providersOption) {
30 providerOption.clientOptions = options
31 }
32}

Callers 1

TestProvidersFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestProvidersFunction · 0.74