mirror of https://github.com/gofiber/fiber.git
* 🔥 feat: add Req and Res interfaces
Split the existing Ctx API into two separate APIs for Requests and
Responses. There are two goals to this change:
1. Reduce cognitive load by making it more obvious whether a Ctx method
interacts with the request or the response.
2. Increase API parity with Express.
* fix(req,res): several issues
* Sprinkle in calls to Req() and Res() to a few unit tests
* Fix improper initialization caught by ^
* Add a few missing methods
* docs: organize Ctx methods by request and response
* feat(req,res): sync more missed methods
---------
Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
|
||
---|---|---|
.. | ||
_category_.json | ||
app.md | ||
bind.md | ||
constants.md | ||
ctx.md | ||
fiber.md | ||
hooks.md | ||
log.md | ||
redirect.md |