@shopify/oxygen-workers-types
    Preparing search index...

    Interface Response

    This Fetch API interface represents the response to a request.

    MDN Reference

    interface Response {
        headers: Headers;
        ok: boolean;
        redirected: boolean;
        status: number;
        statusText: string;
        type: "default" | "error";
        url: string;
        get body(): null | ReadableStream<any>;
        get bodyUsed(): boolean;
        arrayBuffer(): Promise<ArrayBuffer>;
        blob(): Promise<Blob>;
        bytes(): Promise<Uint8Array<ArrayBufferLike>>;
        clone(): Response;
        formData(): Promise<FormData>;
        json<T>(): Promise<T>;
        text(): Promise<string>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    headers: Headers
    ok: boolean
    redirected: boolean
    status: number
    statusText: string
    type: "default" | "error"
    url: string

    Accessors

    • get bodyUsed(): boolean

      Returns boolean

    Methods

    • Returns Promise<ArrayBuffer>

    • Returns Promise<Uint8Array<ArrayBufferLike>>

    • Type Parameters

      • T

      Returns Promise<T>

    • Returns Promise<string>