• 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
        • Optionalinit?: {
              body?: null | string;
              headers?: {
                  [key: string]: string;
              };
              method?: string;
              redirect?: "error" | "follow" | "manual";
          }
          • Optionalbody?: null | string
          • Optionalheaders?: {
                [key: string]: string;
            }
            • [key: string]: string
          • Optionalmethod?: string
          • Optionalredirect?: "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;
        };
    }>