Interface GuardedResponse

What a guardedFetch read.

interface GuardedResponse {
    url: string;
    status: number;
    contentType: string;
    body: Buffer<ArrayBufferLike>;
}

Properties

url: string

The last address, after redirects.

status: number

The HTTP status, a 2xx.

contentType: string

The media type without parameters, in lower case; application/octet-stream for an answer that names none.

body: Buffer<ArrayBufferLike>

The body, decoded.