The redirect URLs.
options - The Got options that were set on this request.Note: This is not a http.ClientRequest.
Optionalip?: stringThe remote IP address.
This is hopefully a temporary limitation, see lukechilds/cacheable-request#86.
Note: Not available when the response is cached.
Whether the response was retrieved from the cache.
The status code of the response.
The request URL or the final URL after redirects.
The object contains the following properties:
start - Time when the request started.socket - Time when a socket was assigned to the request.lookup - Time when the DNS lookup finished.connect - Time when the socket successfully connected.secureConnect - Time when the socket securely connected.upload - Time when the request finished uploading.response - Time when the request fired response event.end - Time when the response fired end event.error - Time when the request fired error event.abort - Time when the request fired abort event.phases
wait - timings.socket - timings.startdns - timings.lookup - timings.sockettcp - timings.connect - timings.lookuptls - timings.secureConnect - timings.connectrequest - timings.upload - (timings.secureConnect || timings.connect)firstByte - timings.response - timings.uploaddownload - timings.end - timings.responsetotal - (timings.end || timings.error || timings.abort) - timings.startIf something has not been measured yet, it will be undefined.
Note: The time is a number representing the milliseconds elapsed since the UNIX epoch.
The number of times the request was retried.
OptionalrawThe raw result of the request.
Optionalbody?: unknownThe result of the request.
Whether the response was successful.
Note: Got throws automatically when response.ok is false and throwHttpErrors is true.
The original request URL.