A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.alibabacloud.com/help/en/functioncompute/fc-2-0/user-guide/http-handlers-2 below:

HTTP handlers - Function Compute

This topic describes the structural features, invocation descriptions, and limits of HTTP handlers in a custom runtime. This topic also provides examples on how to use an HTTP handler and links to some frequently asked questions.

Background information

Function Compute transparently passes your requests, including methods, paths, queries, request headers, request bodies, and common headers generated by Function Compute to HTTP servers. You can smoothly migrate existing HTTP web applications.

Function invocation

The method that you can use to invoke an HTTP handler is similar to that of a web API operation. You can send a request to invoke an HTTP handler by using cURL, Postman, or a browser. When you use a browser to access an HTTP trigger, a function may be downloaded in a forceful manner. For more information about how to resolve this issue, see When I use a web browser to access a function with an HTTP trigger, why do I need to download the response?

Header

Description

(Optional) x-fc-base-path

If you do not specify a custom domain name, /2016-08-15/proxy/${servicename}/${functionname}/ is used as the value of x-fc-base-path.

(Optional) x-fc-status

This header behaves in a similar manner to a header in an event function. This is applicable to HTTP functions that are not migrated to Function Compute but created by calling a web API operation.

You can include the

x-fc-status

field in response headers to report to

Function Compute

whether the local function is successfully invoked.

Note We recommend that you specify the StatusCode and x-fc-status fields in the HTTP response.

Usage notes Examples for other programming languages

You can use Serverless Devs to migrate your applications to Function Compute with a few clicks. The following example shows how to use Serverless Devs to deploy and invoke a function in an efficient manner. You can modify the sample code based on your business requirements.

FAQ

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4