OptionalbodyResponse body, as text or Base64 according to responseType; always empty for http.head. Present on success.
Optionalcancelledtrue when the request was cancelled by http.abort; absent otherwise.
OptionalcodeThe error code: INVALID_PARAMS for a URL that is not http or https, PERMISSION_DENIED for a local or private network address the host setting does not allow, CANCELLED after http.abort, OPERATION_FAILED otherwise. Present on failure.
OptionalcontentThe Content-Length header as a number; present on success of http.head when the server sends one that parses.
OptionalerrorWhy the request failed; present on failure.
OptionalheadersResponse headers by name; of repeated headers the last one wins. Present on success.
Id from the receipt.
Optionalresponsetext or base64, the encoding of body. Present on success.
OptionalstatusHTTP status code: on success that of the response; on failure only when a redirect was refused under redirect: "error", that of the redirect.
Whether a response came back. A response with an error status such as 404 is a success.
Payload of the
http:responseevent. The outcome of an asynchttp.get,http.post,http.put,http.delete,http.patchorhttp.head, carrying the receipt'srequestId. On success it has the fields of the synchronous response; on failureerrorandcode, like a failed call. Sent to the page that made the request, or to a page under the same top-level window when that one cannot be found, or else to the main window's page.