This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.11.11.2.4. 标头
将 HTTP 请求标头返回为对象。
标头示例
您可以使用 curl 命令调用该函数:
示例命令
curl -H'x-custom-header: some-value’' http://example.function.com
$ curl -H'x-custom-header: some-value’' http://example.function.com
输出示例
{"level":30,"time":1604511655265,"pid":3430203,"hostname":"localhost.localdomain","reqId":1,"msg":"some-value"}
{"level":30,"time":1604511655265,"pid":3430203,"hostname":"localhost.localdomain","reqId":1,"msg":"some-value"}