MCPcopy Create free account
hub / github.com/DoNewsCode/core / WithResponseLogThreshold

Function WithResponseLogThreshold

clihttp/client.go:52–56  ·  view source on GitHub ↗

WithResponseLogThreshold is options that sets threshold of response logging in number of bytes. If the response body is larger than this threshold, the log will be omit.

(num int)

Source from the content-addressed store, hash-verified

50// WithResponseLogThreshold is options that sets threshold of response logging in number of bytes.
51// If the response body is larger than this threshold, the log will be omit.
52func WithResponseLogThreshold(num int) Option {
53 return func(client *Client) {
54 client.responseLogThreshold = num
55 }
56}
57
58// NewClient creates a Client with tracing support.
59func NewClient(tracer opentracing.Tracer, options ...Option) *Client {

Callers 2

TestClient_DoFunction · 0.85
TestClient_OptionFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestClient_DoFunction · 0.68
TestClient_OptionFunction · 0.68