mirror of https://github.com/gofiber/fiber.git
* 🔥 Feature: Add SendStreamWriter to Ctx Create a new `*DefaultCtx` method called `SendStreamWriter()` that maps to fasthttp's `Response.SetBodyStreamWriter()` * 🚨 Test: Validate regular use of c.SendStreamWriter() - Adds Test_Ctx_SendStreamWriter to ctx_test.go * 🚨 Test: (WIP) Validate interrupted use of c.SendStreamWriter() - Adds Test_Ctx_SendStreamWriter_Interrupted to ctx_test.go - (Work-In-Progress) This test verifies that some data is still sent before a client disconnects when using the method `c.SendStreamWriter()`. **Note:** Running this test reports a race condition when using the `-race` flag or running `make test`. The test uses a channel and mutex to prevent race conditions, but still triggers a warning. * 📚 Doc: Add `SendStreamWriter` to docs/api/ctx.md * 🩹 Fix: Remove race condition in Test_Ctx_SendStreamWriter_Interrupted * 🎨 Styles: Update ctx_test.go to respect golangci-lint * 📚 Doc: Update /docs/api/ctx.md to show proper `w.Flush()` error handling * 📚 Doc: Add SendStreamWriter details to docs/whats_new.md * 🎨 Styles: Update /docs/whats_new.md to respect markdownlint-cli2 * 🩹 Fix: Fix Fprintf syntax error in docs/whats_new.md --------- Co-authored-by: M. Efe Çetin <efectn@protonmail.com> |
||
---|---|---|
.. | ||
api | ||
client | ||
extra | ||
guide | ||
middleware | ||
partials/routing | ||
intro.md | ||
whats_new.md |