NewWithLBClient creates and returns a new Client object from an existing fasthttp.LBClient.
(c *fasthttp.LBClient)
| 948 | |
| 949 | // NewWithLBClient creates and returns a new Client object from an existing fasthttp.LBClient. |
| 950 | func 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 | |
| 957 | func newClient(transport httpClientTransport) *Client { |
| 958 | return &Client{ |