From 842783d77af0727a69e447fef40ab7c87871b06a Mon Sep 17 00:00:00 2001 From: Rhys Evans Date: Fri, 22 May 2020 21:12:02 +0100 Subject: [PATCH] docs --- docs/_api-inspection/lastOptions.md | 2 +- docs/_api-inspection/lastResponse.md | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 docs/_api-inspection/lastResponse.md diff --git a/docs/_api-inspection/lastOptions.md b/docs/_api-inspection/lastOptions.md index e376794e..83f460a9 100644 --- a/docs/_api-inspection/lastOptions.md +++ b/docs/_api-inspection/lastOptions.md @@ -4,5 +4,5 @@ navTitle: .lastOptions() position: 5 versionAdded: 4.0.0 description: |- - Returns the options for the call to `fetch` matching the given `filter` and `options`. If `fetch` was last called using a `Request` instance, a set of `options` inferred from the `Request` will be returned + Returns the options for the last call to `fetch` matching the given `filter` and `options`. If `fetch` was last called using a `Request` instance, a set of `options` inferred from the `Request` will be returned --- diff --git a/docs/_api-inspection/lastResponse.md b/docs/_api-inspection/lastResponse.md new file mode 100644 index 00000000..d5179072 --- /dev/null +++ b/docs/_api-inspection/lastResponse.md @@ -0,0 +1,15 @@ +--- +title: .lastResponse(filter, options) +navTitle: .lastResponse() +position: 5.5 +versionAdded: 9.10.0 +description: |- + Returns the `Response` for the last call to `fetch` matching the given `filter` and `options`. + + If `.lastResponse()` is called before fetch has been resolved then it will return `undefined` + {: .warning} + + To obtain json/text responses await the `.json()/.text()` methods of the response + {: .info} +--- +