Azure / Azure/azure-functions-host

[HttpWorker]Improve programming model when using HttpTrigger with other outputs

Open
#5,752 0 comments 0 reactions 1 assignee Claimed by @pragnagopa View on GitHub
httpWorker
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 10h
Merged PRs (30d)
36

Description

cc @craigshoemaker

Example function.json
```
{
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": ["get", "post"]
},
{
"type": "http",
"direction": "out",
"name": "res"
},
{
"name": "message",
"type": "queue",
"direction": "out",
"queueName": "worker",
"connection": "AzureWebJobsStorage"
}
]
}

```
When using Httptrigger with other input/output bindings, whole http request object represented by `req` on function invocation is sent as part for `Data`. Accessing http request body looks like
`req.body.Data.req.Body`

Should provide a better way to access http request.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.