July 2018
Intermediate to advanced
350 pages
8h 47m
English
If your Google Cloud Function needs to handle multiple HTTP methods, such as PUT, GET or POST, you can add code to your Cloud Function to check the method property of the HTTP request object and act accordingly. In AWS Lambda functions, the HTTP-based trigger on the Lambda function is not directly available and you need to use Amazon API Gateway to add HTTP triggers to your Lambda function. Within Amazon API Gateway, you can specify the HTTP methods that are allowed and configure the Amazon API Gateway to call the Lambda function when only certain HTTP methods are matched. Because of this, you don't have to check within your Function code for the HTTP method.
Let's look at a sample Google Cloud Function code ...
Read now
Unlock full access