This topic describes the common request headers and common response headers in Function Compute API operations.

Common request headers

Parameter Type Position Required Example Description
Host String Header Yes 18807708****3420.cn-hangzhou.fc.aliyuncs.com The domain name that is used to access Function Compute. For more information, see Endpoints.
Date String Header Yes Mon, 09 Nov 2020 09:46:33 GMT The request time.
Note The time must be in GMT.
Authorization String Header Yes FC LTAIJZbr****mhrr:HeAESktL6PiPGDmZVlpSz5Xe7Zr40JjMulNL5qTyr5M= The signature value that is used for verification.
Content-Type String Header Yes application/json; charset=utf-8 The parameter type supported by the request. Valid values:
  • InvokeFunction: supports application/json and application/octet-stream.
  • Other requests: support only application/json.
Content-Length Integer Header Yes 100 The length of the request.
Content-MD5 String Header Yes jT96eZsQ7fmirAZWrC87Lw== The MD5 value of the request.

Common response headers

Parameter Type Example Description
X-Fc-Request-Id String 7c43576b-48b1-4c3a-86e5-dcb01872**** The request ID, which can be used for troubleshooting.
Date String Mon, 09 Nov 2020 09:46:33 GMT The response time.
Note The time is displayed in GMT.
Content-Type String application/json; charset=utf-8 The parameter type supported by the response. Valid values:
  • InvokeFunction: supports application/json and application/octet-stream.
  • Other requests: support only application/json.
Content-Length Integer 100 The length of the response.