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

Method HostClient

client/client.go:126–131  ·  view source on GitHub ↗

HostClient returns the underlying fasthttp.HostClient if the client was created with one.

()

Source from the content-addressed store, hash-verified

124
125// HostClient returns the underlying fasthttp.HostClient if the client was created with one.
126func (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.
134func (c *Client) LBClient() *fasthttp.LBClient {

Calls

no outgoing calls