Azure / Azure/azure-functions-host
Allow setting parts for http trigger response when function returns a json
- Dominant language
- C#
- Stars
- 2k
- Forks
- 482
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 38
Description
cc @mhoeger
Following code allows setting StatusCode, Headers, Query etc on http response only if body is set.
https://github.com/Azure/azure-functions-host/blob/680243f51bae49dc176142f72378c707665dce71/src/WebJobs.Script/Binding/Http/HttpBinding.cs#L118-L142
This code effects out-of-proc and .csx functions. Fixing it would be breaking change. Have to fix this as part of next major release.
Contributor guide
Research direction
Start by reviewing src/WebJobs.Script/Binding/Http/HttpBinding.cs at lines 118-142, where HTTP response properties are currently handled. Compare behavior for out-of-proc and .csx functions when the function returns JSON, and account for the stated breaking-change constraint. Done means those responses can set StatusCode, Headers, Query, and related properties without affecting existing compatibility expectations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend-api-design
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100