Interface ResponseLike

stripped down version of Response

interface ResponseLike {
    ok: boolean;
    status: number;
    statusText: string;
    text(): Promise<string>;
}

Properties

Methods

Properties

ok: boolean

true if request was successful

status: number

http status

statusText: string

text associated with status

Methods

  • get response body as text

    Returns Promise<string>