All Products
Search
Document Center

Overview

Last Updated: Nov 28, 2018

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.

Limits

Only functions with an HTTP trigger can process HTTP requests. And Function handlers with an HTTP trigger are different from common function handlers.

Contents

To run a function triggered by the HTTP requests, follow these steps:

  1. Create an HTTP trigger.

  2. Write a handler.

  3. Test function execution.

References