Response

Represents a HTTP response message.

Constructor

new Response(status, headersnon-null, body)

Parameters:
NameTypeDescription
statusnumber

The response code.

headersObject.<string>

The response headers. All header names will be converted to lowercase strings for consistent lookups.

bodystring

The response body.

Methods

toString()