Optional
body?: null | TOptional
fileOptional
headers?: HttpHeadersOptional
profile?: RequestProfileOptional
status?: numberOptional
statusOptional
tempOptional
url?: stringReadonly
bodyThe response body, or null
if one was not returned.
Readonly
file用户文件路径 (本地路径)。传入 filePath 时会返回,跟传入的 filePath 一致
Readonly
headersAll response headers.
Readonly
okWhether the status code falls in the 2xx range.
Readonly
profile网络请求过程中一些调试信息,查看详细说明
Readonly
statusResponse status code.
Readonly
statusTextual description of response status code, defaults to OK.
Do not depend on this.
Readonly
temp临时文件路径 (本地路径)。没传入 filePath 指定文件存储路径时会返回,下载后的文件会存储到一个临时文件
Readonly
typeReadonly
urlURL of the resource retrieved, or null if not available.
Optional
fileOptional
headers?: HttpHeadersOptional
profile?: RequestProfileOptional
status?: numberOptional
statusOptional
tempOptional
url?: stringOptional
body?: null | VOptional
fileOptional
headers?: HttpHeadersOptional
profile?: RequestProfileOptional
status?: numberOptional
statusOptional
tempOptional
url?: stringGenerated using TypeDoc
Construct a new
WxHttpDownloadResponse
.