MCPcopy
hub / github.com/gofiber/fiber / SetClient

Method SetClient

client/request.go:104–111  ·  view source on GitHub ↗

SetClient sets the Client instance for the Request.

(c *Client)

Source from the content-addressed store, hash-verified

102
103// SetClient sets the Client instance for the Request.
104func (r *Request) SetClient(c *Client) *Request {
105 if c == nil {
106 panic(ErrClientNil)
107 }
108
109 r.client = c
110 return r
111}
112
113// Context returns the context associated with the Request.
114// If not set, a background context is returned.

Callers 15

checkClientMethod · 0.95
Test_Response_StatusFunction · 0.80
Test_Response_ProtocolFunction · 0.80
Test_Response_HeaderFunction · 0.80
Test_Response_HeadersFunction · 0.80
Benchmark_HeadersFunction · 0.80
Test_Response_CookieFunction · 0.80
Test_Response_BodyFunction · 0.80
Test_Response_SaveFunction · 0.80
testRequestFunction · 0.80

Calls

no outgoing calls

Tested by 15

Test_Response_StatusFunction · 0.64
Test_Response_ProtocolFunction · 0.64
Test_Response_HeaderFunction · 0.64
Test_Response_HeadersFunction · 0.64
Benchmark_HeadersFunction · 0.64
Test_Response_CookieFunction · 0.64
Test_Response_BodyFunction · 0.64
Test_Response_SaveFunction · 0.64
testRequestFunction · 0.64
testRequestFailFunction · 0.64