HTTP and webhook bindings
Azure Functions support HTTP and WebHook bindings for both Triggers and Output Bindings. HTTP triggered Azure Functions doesn't support Input Bindings.
You can customize an HTTP trigger to respond to WebHooks. The Azure Functions webhook trigger will only accept a JSON payload and will only validate JSON. Azure Functions also support special versions of WebHook triggers, which make it easier to consume webhooks from providers such as Slack and GitHub.
HTTP trigger
Let's look at a sample function.json
binding file for the HTTP trigger for Azure Functions. In the following bindings, you can see that the type
is set to httpTrigger
, which means that the trigger is HTTP, and the output binding is also set to HTTP, which means the output of the function is an HTTP request:
{ "disabled": false, "bindings": [ { "authLevel": "function", "name": "req", "type": "httpTrigger", "direction": "in", "methods": [ "post" ] }, { "name": "$return", "type": "http", "direction...