FasthttpClient returns the underlying *fasthttp.Client if the client was created with one.
()
| 116 | |
| 117 | // FasthttpClient returns the underlying *fasthttp.Client if the client was created with one. |
| 118 | func (c *Client) FasthttpClient() *fasthttp.Client { |
| 119 | if client, ok := c.transport.(*standardClientTransport); ok { |
| 120 | return client.client |
| 121 | } |
| 122 | return nil |
| 123 | } |
| 124 | |
| 125 | // HostClient returns the underlying fasthttp.HostClient if the client was created with one. |
| 126 | func (c *Client) HostClient() *fasthttp.HostClient { |
no outgoing calls