NewWithClient creates and returns a new Client object from an existing fasthttp.Client.
(c *fasthttp.Client)
| 932 | |
| 933 | // NewWithClient creates and returns a new Client object from an existing fasthttp.Client. |
| 934 | func 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. |
| 942 | func NewWithHostClient(c *fasthttp.HostClient) *Client { |