查询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 | 失败 |
请求示例
Plain Text
1GET /v2/domain/myself.baidu.com/config?httpHeader HTTP/1.1
2Host: cdn.baidubce.com
响应示例
Plain Text
1HTTP/1.1 200 OK
2Content-Type: application/json; charset=utf-8
3Transfer-Encoding: chunked
4
5{
6 "httpHeader": [{
7 "type": "origin",
8 "action": "add",
9 "header": "x-auth-cn",
10 "value": "xxx",
11 "describe": ""
12 }, {
13 "type": "response",
14 "action": "add",
15 "header": "content-type",
16 "value": "application\/octest-stream",
17 "describe": ""
18 }]
19}