You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`client.NewWithHostClient` and `client.NewWithLBClient` allow you to plug existing `fasthttp` clients directly into Fiber while keeping retries, redirects, and hook logic consistent.
2. **Body handling**: Replace`Agent.JSON(...).Struct(&dst)` with request bodies through `client.Config` (or `Request.SetJSON`) and decode the response via `Response.JSON`.
4. **Agent helpers**: `Agent.Bytes`, `AcquireAgent`, and `Agent.Parse` have been removed. Reuse a `client.Client`instance (or pool requests/responses directly) and access response data through the new typed helpers.
If you need pooling, use `client.AcquireRequest`, `client.AcquireResponse`, and their corresponding release functions around a long-lived `client.Client` instead of the removed agent pool.
2324
+
:::
2325
+
2326
+
</details>
2327
+
2328
+
5. **Fiber-level shortcuts**: The`fiber.Get`, `fiber.Post`, and similar top-level helpers are no longer exposed from the main module. Use the client packageequivalents (`client.Get`, `client.Post`, etc.) which call the shared defaultclient (or pass your own client instance for custom defaults).
The`client.Get`/`client.Post` helpers use `client.C()` (the default shared client). For custom defaults, construct a client with `client.New()` and invoke its methods instead.
2355
+
:::
2356
+
2357
+
</details>
2358
+
2155
2359
### 🛠️ Utils {#utils-migration}
2156
2360
2157
2361
Fiber v3 removes the in-repo `utils`package in favor of the external [`github.com/gofiber/utils/v2`](https://github.com/gofiber/utils) module.
0 commit comments