Closed mattcarlotta closed 1 year ago
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord
Closing this RFC as it doesn't appear to be possible with how fasthttp flushes the stream: click here for more info.
Feature Description
Since Fiber models itself to the Express API, it would be nice if Fiber provided an end method.
This would simplify the following code from...
to:
It would also be nice for it to be invokable at the end of a context chain:
Additional Context (optional)
While writing
.Send(nil)
over and over is not the end of the world,.End()
would be a subjectively cleaner way to communicate an empty response body.That said, calling
.End()
could simply be an alias for.Send(nil)
Code Snippet (optional)
No response
Checklist: