17 lines
391 B
TypeScript
17 lines
391 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;
|
||
|
};
|
||
|
};
|
||
|
export declare function getUrl(href: string, options?: Options): Promise<GetUrlResponse>;
|