doc-exports/docs/apig/umn/apig-en-ug-180830102.html
Chen, Junjie 91c429e341 APIG UMN 20230331 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Chen, Junjie <chenjunjie@huawei.com>
Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
2023-06-01 08:59:08 +00:00

9.1 KiB

Response Headers

The following table describes the response headers that APIG adds to the response returned when an API is called.

X-Apig-Mode: debug indicates API debugging information.

Response Header

Description

Remarks

X-Request-Id

Request ID.

Returned for all valid requests.

X-Apig-Latency

Duration from the time when APIG receives a request to the time when the backend returns a message header.

Returned only when the request header contains X-Apig-Mode: debug.

X-Apig-Upstream-Latency

Duration from the time when APIG sends a request to the backend to the time when the backend returns a message header.

Returned only when the request header contains X-Apig-Mode: debug and the backend type is not Mock.

X-Apig-RateLimit-api

API request limit information.

Example: remain:9,limit:10,time:10 second.

Returned only when the request header contains X-Apig-Mode: debug and a limit has been configured for the number of times the API can be called.

X-Apig-RateLimit-user

User request limit information.

Example: remain:9,limit:10,time:10 second.

Returned only when the request header contains X-Apig-Mode: debug and a limit has been configured for the number of times the API can be called by a user.

X-Apig-RateLimit-app

App request limit information.

Example: remain:9,limit:10,time:10 second.

Returned only when the request header contains X-Apig-Mode: debug and a limit has been configured for the number of times the API can be called by an app.

X-Apig-RateLimit-ip

IP address request limit information.

Example: remain:9,limit:10,time:10 second.

Returned only when the request header contains X-Apig-Mode: debug and a limit has been configured for the number of times the API can be called by an IP address.

X-Apig-RateLimit-api-allenv

Default API request limit information.

Example: remain:199,limit:200,time:1 second.

Returned only when the request header contains X-Apig-Mode: debug.