With net/http server, when the client cancels the request, the context attached to the request object returns a done signal which you can use to cancel processing the rest of the request.
We are not talking about fixed duration timeouts here.
Why does fasthttp not support request cancelation?
via Fiber framework:
func Handler(c *fiber.Ctx) error {
ctx := c.Context()
<-ctx.Done()
}
With
net/httpserver, when the client cancels the request, the context attached to the request object returns a done signal which you can use to cancel processing the rest of the request.We are not talking about fixed duration timeouts here.
Why does fasthttp not support request cancelation?
via Fiber framework: