- callNodeFetch(args): Promise<{
response: {
bodyAsText: string;
ok: boolean;
redirected: boolean;
status: number;
statusText: string;
url: string;
};
error: undefined;
} | {
response: undefined;
error: {
name: undefined | string;
message: undefined | string;
type: undefined | string;
};
}> Parameters
- args: {
nodeFetchArgs: {
input: string;
init?: {
body?: null | string;
headers?: {
[key: string]: string;
};
method?: string;
redirect?: "error" | "follow" | "manual";
};
};
}nodeFetchArgs: {
input: string;
init?: {
body?: null | string;
headers?: {
[key: string]: string;
};
method?: string;
redirect?: "error" | "follow" | "manual";
};
}
input: string
Optional
init?: {
body?: null | string;
headers?: {
[key: string]: string;
};
method?: string;
redirect?: "error" | "follow" | "manual";
}
Optional
body?: null | string
Optional
headers?: {
[key: string]: string;
}
Optional
method?: string
Optional
redirect?: "error" | "follow" | "manual"
Returns Promise<{
response: {
bodyAsText: string;
ok: boolean;
redirected: boolean;
status: number;
statusText: string;
url: string;
};
error: undefined;
} | {
response: undefined;
error: {
name: undefined | string;
message: undefined | string;
type: undefined | string;
};
}>