ethers.js/packages/web/lib/browser-geturl.d.ts

17 lines
383 B
TypeScript
Raw Permalink Normal View History

2020-04-18 05:14:55 -04:00
export declare type GetUrlResponse = {
statusCode: number;
statusMessage: string;
headers: {
[key: string]: string;
};
body: string;
};
export declare type Options = {
method?: string;
body?: string;
headers?: {
[key: string]: string;
};
};
export declare function getUrl(href: string, options?: Options): Promise<GetUrlResponse>;