Interface ResponseInit

Contains network response properties used to modify an HTTP response.

interface ResponseInit {
    body?: ResponseBody;
    headers?: HTTPHeaders;
    status?: number;
    statusText?: string;
    url?: string;
}

Properties

The response's body.

The original response's body.

headers?: HTTPHeaders

The response's HTTP headers.

The original response's HTTP headers.

status?: number

The response's status code.

The original response's status code.

statusText?: string

The response's status text.

The original response's status text.

url?: string

The response's URL.

The original response's URL.