Skip to content

Commit

Permalink
Add missing response properties
Browse files Browse the repository at this point in the history
  • Loading branch information
nkronlage committed Oct 26, 2019
1 parent 1d8c401 commit be4c715
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions content/Browser/response.jsdoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,34 @@ Spec:
https://fetch.spec.whatwg.org/#response-class

----
new Response([body : Object, [init : { \
new Response([body = null : Object, [init : { \
status = 200 : Number, \
statusText = 'OK' : String, \
statusText = '' : String, \
headers : Object \
}]]) : Response

**body** must be one of %%/ArrayBuffer|ArrayBuffer%%,
%%/ArrayBufferView|ArrayBufferView%%, %%/Blob|Blob%%, %%/FormData|FormData%%,
ReadableStream, %%/String|String%%, or %%/URLSearchParams|URLSearchParams%%.

----
instance.headers : Headers

ReadOnly:
true

----
instance.ok : Boolean

ReadOnly:
true

----
instance.redirected : Boolean

ReadOnly:
true

----
instance.status : Number

Expand All @@ -32,6 +48,12 @@ instance.statusText : String
ReadOnly:
true

----
instance.trailer : Promise<Headers>

ReadOnly:
true

----
instance.type : String

Expand All @@ -40,7 +62,8 @@ Will be one of:
**'cors'**,
**'default'**,
**'error'**,
**'opaque'**.
**'opaque'**,
**'opaqueredirect'**.

ReadOnly:
true
Expand Down

0 comments on commit be4c715

Please sign in to comment.