HostClient returns the underlying fasthttp.HostClient if the client was created with one.
()
| 124 | |
| 125 | // HostClient returns the underlying fasthttp.HostClient if the client was created with one. |
| 126 | func (c *Client) HostClient() *fasthttp.HostClient { |
| 127 | if client, ok := c.transport.(*hostClientTransport); ok { |
| 128 | return client.client |
| 129 | } |
| 130 | return nil |
| 131 | } |
| 132 | |
| 133 | // LBClient returns the underlying fasthttp.LBClient if the client was created with one. |
| 134 | func (c *Client) LBClient() *fasthttp.LBClient { |
no outgoing calls