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.

Default Value

The original response's body.

headers?: HTTPHeaders

The response's HTTP headers.

Default Value

The original response's HTTP headers.

status?: number

The response's status code.

Default Value

The original response's status code.

statusText?: string

The response's status text.

Default Value

The original response's status text.

url?: string

The response's URL.

Default Value

The original response's URL.