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

Function Do

middleware/proxy/proxy.go:152–156  ·  view source on GitHub ↗

Do performs the given http request and fills the given http response. This method can be used within a fiber.Handler

(c fiber.Ctx, addr string, clients ...*fasthttp.Client)

Source from the content-addressed store, hash-verified

150// Do performs the given http request and fills the given http response.
151// This method can be used within a fiber.Handler
152func Do(c fiber.Ctx, addr string, clients ...*fasthttp.Client) error {
153 return doAction(c, addr, func(cli *fasthttp.Client, req *fasthttp.Request, resp *fasthttp.Response) error {
154 return cli.Do(req, resp)
155 }, clients...)
156}
157
158// DoRedirects performs the given http request and fills the given http response, following up to maxRedirectsCount redirects.
159// When the redirect count exceeds maxRedirectsCount, ErrTooManyRedirects is returned.

Callers 9

ForwardFunction · 0.85
DomainForwardFunction · 0.85
BalancerForwardFunction · 0.85

Calls 2

doActionFunction · 0.85
DoMethod · 0.65