Skip to content

Support for HttpContext.RequestAborted in the HttpTrigger cancellation token #8903

Closed
@CasperWSchmidt

Description

@CasperWSchmidt

What problem would the feature you're requesting solve? Please describe.

Using Http triggers in Azure Functions is a common use case. Having longer running functions is also quite normal. Therefore I'm actually quite surprised that cancelling a request (fx. in Postman) affect the function running. IMHO that is what developers would expect (at least it's what I did, and what the author did here)

Describe the solution you'd like

Something like what's described here - when the client cancels the http request the Azure Function should be notified through the cancellation token by default

Describe alternatives you've considered

Manually handling the linking of the host cancellation token and HttpContext.RequestAborted as described here

Additional context

None

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions