This tutorial describes how to build a web server based on HTTP triggers.
Function Compute supports HTTP triggers. You can trigger the execution of a function by sending an HTTP request to the function, and then check whether the function is executed. The function, serving as a web server, processes the HTTP request and then returns the response to the caller.
Only functions with an HTTP trigger can process HTTP requests. And Function handlers with an HTTP trigger are different from common function handlers.
To run a function triggered by the HTTP requests, follow these steps: