Skip to content

Request Cancellation #965

Description

@pjebs

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()
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions