查询HttpHeader
更新时间:2021-10-14
接口
本接口用于查询指定加速域名设置的Http Header。此域名必须是本用户的,否则会返回404失败。
Method | Path | 说明 |
---|---|---|
GET | /v2/domain/{domain}/config?httpHeader | 查询域名的Header |
domain: 需要查询CDN的加速域名
响应体 (Response Body)
参数 | 类型 | 说明 |
---|---|---|
httpHeader | HttpHeader | 设置的回源或响应Header |
响应码 (Http Status Code)
HTTP Status Code | 说明 |
---|---|
200 | 成功 |
403 | 失败 |
请求示例
GET /v2/domain/myself.baidu.com/config?httpHeader HTTP/1.1
Host: cdn.baidubce.com
响应示例
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
{
"httpHeader": [{
"type": "origin",
"action": "add",
"header": "x-auth-cn",
"value": "xxx",
"describe": ""
}, {
"type": "response",
"action": "add",
"header": "content-type",
"value": "application\/octest-stream",
"describe": ""
}]
}