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

Function NewWithClient

client/client.go:934–939  ·  view source on GitHub ↗

NewWithClient creates and returns a new Client object from an existing fasthttp.Client.

(c *fasthttp.Client)

Source from the content-addressed store, hash-verified

932
933// NewWithClient creates and returns a new Client object from an existing fasthttp.Client.
934func NewWithClient(c *fasthttp.Client) *Client {
935 if c == nil {
936 panic("fasthttp.Client must not be nil")
937 }
938 return newClient(newStandardClientTransport(c))
939}
940
941// NewWithHostClient creates and returns a new Client object from an existing fasthttp.HostClient.
942func NewWithHostClient(c *fasthttp.HostClient) *Client {

Callers 2

Test_New_With_ClientFunction · 0.85
NewFunction · 0.85

Calls 2

newClientFunction · 0.85

Tested by 1

Test_New_With_ClientFunction · 0.68