This topic describes handlers and how to configure handlers in a custom runtime in Function Compute.
What is a handler?
A handler for a function in FC is the method that is used to process requests in function code. When a function in FC is invoked, Function Compute uses the handler that you configured to process requests. You can configure a handler by specifying a value for the Request Handler parameter in the Function Compute console.
x-fc-function-handler
header in the logic of the HTTP server to obtain the handler configurations for custom
processing.
For more information about the definitions and operations of functions in FC, see Manage functions.
Configure a handler
When you configure a handler, make sure that you follow the configuration specifications that are described in Function Compute. The configuration specifications vary based on the handler type.
Handlers are classified into event handlers and HTTP handlers. Event requests are generated by event sources, and HTTP requests are generated by HTTP triggers. For more information, see Function types.
For examples on how to configure a handler, see Event handlers and HTTP handlers.