Skip to Content
Hands-On Serverless Computing
book

Hands-On Serverless Computing

by Kuldeep Chowhan
July 2018
Intermediate to advanced
350 pages
8h 47m
English
Packt Publishing
Content preview from Hands-On Serverless Computing

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": "out" } ] }

Let's look at how to create an HTTP Trigger using Azure Portal:

  1. Select your Azure Function from the Function Apps page
  2. Navigate to Integrate
  3. Click on New Trigger
  4. Choose HTTP

The preceding steps can be seen in the following ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn AWS Serverless Computing

Learn AWS Serverless Computing

Scott Patterson
Erlang and OTP in Action

Erlang and OTP in Action

Eric Merritt, Richard Carlsson, Martin Logan

Publisher Resources

ISBN: 9781788836654Supplemental Content