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)
| 150 | // Do performs the given http request and fills the given http response. |
| 151 | // This method can be used within a fiber.Handler |
| 152 | func 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. |