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

Function NewWithLBClient

client/client.go:950–955  ·  view source on GitHub ↗

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

(c *fasthttp.LBClient)

Source from the content-addressed store, hash-verified

948
949// NewWithLBClient creates and returns a new Client object from an existing fasthttp.LBClient.
950func NewWithLBClient(c *fasthttp.LBClient) *Client {
951 if c == nil {
952 panic("fasthttp.LBClient must not be nil")
953 }
954 return newClient(newLBClientTransport(c))
955}
956
957func newClient(transport httpClientTransport) *Client {
958 return &Client{

Calls 2

newClientFunction · 0.85
newLBClientTransportFunction · 0.85

Tested by 4

Test_New_With_LBClientFunction · 0.68