Help Center> FunctionGraph> User Guide (Kuala Lumpur Region)> FAQs> Function Execution FAQs> How Do I Read the Request Header of a Function?
Updated on 2023-07-06 GMT+08:00

How Do I Read the Request Header of a Function?

The first parameter in the function handler contains the request header. You can print the function execution result to obtain required fields.

As shown in the following figure, event is the first parameter in the function handler, and headers is the request header.