Merge pull request #267 from AlexTes/patch-1

Document response.ok convenience property
This commit is contained in:
David Frank 2017-05-12 12:09:04 +08:00 committed by GitHub
commit 7fb7ea52a8
1 changed files with 4 additions and 0 deletions

View File

@ -268,6 +268,10 @@ Constructs a new `Response` object. The constructor is identical to that in the
Because Node.js does not implement service workers (for which this class was designed), one rarely has to construct a `Response` directly. Because Node.js does not implement service workers (for which this class was designed), one rarely has to construct a `Response` directly.
#### response.ok
Convenience property representing if the request ended normally. Will evaluate to true if the response status was greater than or equal to 200 but smaller than 300.
<a id="class-headers"></a> <a id="class-headers"></a>
### Class: Headers ### Class: Headers