public class PushUrlsCacheRequest extends AbstractModel
Constructor and Description |
---|
PushUrlsCacheRequest() |
PushUrlsCacheRequest(PushUrlsCacheRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getArea()
Get Destination region for the prefetch
`mainland`: prefetches resources to nodes within Mainland China
`overseas`: prefetches resources to nodes outside Mainland China
`global`: prefetches resources to global nodes
Default value: `mainland`.
|
Boolean |
getDisableRange()
Get Specifies whether to disable Range GETs.
|
HTTPHeader[] |
getHeaders()
Get Custom HTTP request headers (Up to 20).
|
String |
getLayer()
Get By default, prefetch for regions in the Chinese mainland is performed onto the intermediate nodes, while prefetch for regions outside the Chinese mainland is performed onto the edge nodes and the traffic generated will be billed.
|
Boolean |
getParseM3U8()
Get Whether to recursively resolve the M3U8 index file and prefetch the TS shards in it.
|
Boolean |
getUrlEncode()
Get Whether to encode the URL
|
String[] |
getUrls()
Get List of URLs.
|
String |
getUserAgent()
Get Specifies the User-Agent header of an HTTP prefetch request when it is forwarded to the origin server
Default value: `TencentCdn`
|
void |
setArea(String Area)
Set Destination region for the prefetch
`mainland`: prefetches resources to nodes within Mainland China
`overseas`: prefetches resources to nodes outside Mainland China
`global`: prefetches resources to global nodes
Default value: `mainland`.
|
void |
setDisableRange(Boolean DisableRange)
Set Specifies whether to disable Range GETs.
|
void |
setHeaders(HTTPHeader[] Headers)
Set Custom HTTP request headers (Up to 20).
|
void |
setLayer(String Layer)
Set By default, prefetch for regions in the Chinese mainland is performed onto the intermediate nodes, while prefetch for regions outside the Chinese mainland is performed onto the edge nodes and the traffic generated will be billed.
|
void |
setParseM3U8(Boolean ParseM3U8)
Set Whether to recursively resolve the M3U8 index file and prefetch the TS shards in it.
|
void |
setUrlEncode(Boolean UrlEncode)
Set Whether to encode the URL
|
void |
setUrls(String[] Urls)
Set List of URLs.
|
void |
setUserAgent(String UserAgent)
Set Specifies the User-Agent header of an HTTP prefetch request when it is forwarded to the origin server
Default value: `TencentCdn`
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public PushUrlsCacheRequest()
public PushUrlsCacheRequest(PushUrlsCacheRequest source)
public String[] getUrls()
public void setUrls(String[] Urls)
Urls
- List of URLs. The protocol header such as "http://" or "https://" needs to be included.public String getUserAgent()
public void setUserAgent(String UserAgent)
UserAgent
- Specifies the User-Agent header of an HTTP prefetch request when it is forwarded to the origin server
Default value: `TencentCdn`public String getArea()
public void setArea(String Area)
Area
- Destination region for the prefetch
`mainland`: prefetches resources to nodes within Mainland China
`overseas`: prefetches resources to nodes outside Mainland China
`global`: prefetches resources to global nodes
Default value: `mainland`. You can prefetch a URL to nodes in a region provided that CDN service has been enabled for the domain name in the URL in the region.public String getLayer()
public void setLayer(String Layer)
Layer
- By default, prefetch for regions in the Chinese mainland is performed onto the intermediate nodes, while prefetch for regions outside the Chinese mainland is performed onto the edge nodes and the traffic generated will be billed.
If this parameter is `middle` or left empty, prefetch will be performed onto the intermediate node.public Boolean getParseM3U8()
public void setParseM3U8(Boolean ParseM3U8)
ParseM3U8
- Whether to recursively resolve the M3U8 index file and prefetch the TS shards in it.
Notes:
1. This feature requires that the M3U8 index file can be directly requested and obtained.
2. In the M3U8 index file, currently only the TS shards at the first to the third level can be recursively resolved.
3. Prefetching the TS shards obtained through recursive resolution consumes the daily prefetch quota. If the usage exceeds the quota, the feature will be disabled and TS shards will not be prefetched.public Boolean getDisableRange()
public void setDisableRange(Boolean DisableRange)
DisableRange
- Specifies whether to disable Range GETs.
Notes:
This feature is in beta test.public HTTPHeader[] getHeaders()
public void setHeaders(HTTPHeader[] Headers)
Headers
- Custom HTTP request headers (Up to 20). `Name`: Up to 128 characters. `Value`: Up to 1024 characters.public Boolean getUrlEncode()
public void setUrlEncode(Boolean UrlEncode)
UrlEncode
- Whether to encode the URLCopyright © 2023. All rights reserved.