This topic describes handlers and how to configure them in a Custom Container runtime in Function Compute.
What is a handler?
A handler of a function in Function Compute is a method that is used to process requests in the function code. Handlers are classified into event handlers and HTTP handlers. Event requests are generated by event sources, while HTTP requests are generated by HTTP triggers.
When you invoke a Custom Container function, Function Compute uses the handler that you configured to process requests. You can use the x-fc-function-handler header in the logic of your HTTP server to obtain the handler configurations for custom processing.
For more information about the definitions and operations of functions in Function Compute, see Manage functions.
How to 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.
For examples on how to configure a handler, see Event handlers and HTTP handlers.