ethers.js/misc/admin/lib/geturl.d.ts
2020-10-03 02:20:50 -04:00

19 lines
433 B
TypeScript

export declare type GetUrlResponse = {
statusCode: number;
statusMessage: string;
headers: {
[key: string]: string;
};
body: Uint8Array;
};
export declare type Options = {
method?: string;
body?: Uint8Array;
headers?: {
[key: string]: string;
};
user?: string;
password?: string;
};
export declare function getUrl(href: string, options?: Options): Promise<GetUrlResponse>;