///
import { HttpHeaders, HttpResponse } from 'angular-miniprogram/common/http';
export declare class MiniProgramHttpResponse extends HttpResponse {
/**
* 开发者服务器返回的 cookies,格式为字符串数组
*/
readonly cookies: string[] | null;
/**
* 网络请求过程中一些调试信息,[查看详细说明](https://developers.weixin.qq.com/miniprogram/dev/framework/performance/network.html)
*/
readonly profile: WechatMiniprogram.RequestProfile | null;
/**
* Construct a new `WxHttpResponse`.
*/
constructor(init?: {
body?: T | null;
headers?: HttpHeaders;
status?: number;
statusText?: string;
url?: string;
cookies?: string[];
profile?: WechatMiniprogram.RequestProfile;
});
clone(): MiniProgramHttpResponse;
clone(update: {
headers?: HttpHeaders;
status?: number;
statusText?: string;
url?: string;
cookies?: string[];
profile?: WechatMiniprogram.RequestProfile;
}): MiniProgramHttpResponse;
clone(update: {
body?: V | null;
headers?: HttpHeaders;
status?: number;
statusText?: string;
url?: string;
cookies?: string[];
profile?: WechatMiniprogram.RequestProfile;
}): MiniProgramHttpResponse;
}
export declare class MiniProgramHttpDownloadResponse extends HttpResponse {
/** 用户文件路径 (本地路径)。传入 filePath 时会返回,跟传入的 filePath 一致 */
readonly filePath: string | null;
/** 临时文件路径 (本地路径)。没传入 filePath 指定文件存储路径时会返回,下载后的文件会存储到一个临时文件 */
readonly tempFilePath: string | null;
/**
* 网络请求过程中一些调试信息,[查看详细说明](https://developers.weixin.qq.com/miniprogram/dev/framework/performance/network.html)
*/
readonly profile: WechatMiniprogram.RequestProfile | null;
/**
* Construct a new `WxHttpDownloadResponse`.
*/
constructor(init?: {
body?: T | null;
headers?: HttpHeaders;
status?: number;
statusText?: string;
url?: string;
filePath?: string;
tempFilePath?: string;
profile?: WechatMiniprogram.RequestProfile;
});
clone(): MiniProgramHttpDownloadResponse;
clone(update: {
headers?: HttpHeaders;
status?: number;
statusText?: string;
url?: string;
filePath?: string;
tempFilePath?: string;
profile?: WechatMiniprogram.RequestProfile;
}): MiniProgramHttpDownloadResponse;
clone(update: {
body?: V | null;
headers?: HttpHeaders;
status?: number;
statusText?: string;
url?: string;
filePath?: string;
tempFilePath?: string;
profile?: WechatMiniprogram.RequestProfile;
}): MiniProgramHttpDownloadResponse;
}