diff --git a/docs/example.html b/docs/example.html index 05b79f3..964cffa 100644 --- a/docs/example.html +++ b/docs/example.html @@ -96,17 +96,17 @@ status: res.status, ok: res.ok, statusText: res.statusText, - json: () => res.json(), - text: () => res.text(), + json: async () => await res.json(), + text: async () => await res.text(), formData: () => res.formData(), headers: res.headers, type: res.type, url: res.url, - blob: () => res.blob(), + blob: async () => await res.blob(), bodyUsed: res.bodyUsed, redirected: res.redirected, body: res.body, - arrayBuffer: () => res.arrayBuffer(), + arrayBuffer: async () => await res.arrayBuffer(), clone: () => res.clone(), } } diff --git a/example/browser/playground.html b/example/browser/playground.html index 05b79f3..964cffa 100644 --- a/example/browser/playground.html +++ b/example/browser/playground.html @@ -96,17 +96,17 @@ status: res.status, ok: res.ok, statusText: res.statusText, - json: () => res.json(), - text: () => res.text(), + json: async () => await res.json(), + text: async () => await res.text(), formData: () => res.formData(), headers: res.headers, type: res.type, url: res.url, - blob: () => res.blob(), + blob: async () => await res.blob(), bodyUsed: res.bodyUsed, redirected: res.redirected, body: res.body, - arrayBuffer: () => res.arrayBuffer(), + arrayBuffer: async () => await res.arrayBuffer(), clone: () => res.clone(), } }