fiber/docs
Giovanni Rivera 31a503f699
🔥 Feature (v3): Add buffered streaming support (#3131)
* 🔥 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>
2024-11-27 11:11:56 +01:00
..
api 🔥 Feature (v3): Add buffered streaming support (#3131) 2024-11-27 11:11:56 +01:00
client 🔥 feat: Add support for creating Fiber client from existing FastHTTP client (#3214) 2024-11-25 11:54:07 +01:00
extra Update faq.md 2024-08-22 08:23:03 +02:00
guide fix template markdown 2024-08-30 17:18:55 +02:00
middleware 🔥 feat: Add Context Support to RequestID Middleware (#3200) 2024-11-15 17:34:20 +01:00
partials/routing v3: Add support for consistent documentation using markdownlint (#3064) 2024-07-11 15:21:56 +02:00
intro.md 📚 Doc: Update intro documentation (#3204) 2024-11-13 13:11:09 +01:00
whats_new.md 🔥 Feature (v3): Add buffered streaming support (#3131) 2024-11-27 11:11:56 +01:00