Skip to content

Commit

Permalink
Increment encoded/decoded body size for constructed responses (w3c#1664)
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr authored Nov 28, 2022
1 parent 5bcc30d commit 5eb478f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1640,6 +1640,8 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
::
1. Assert: |chunk| is a {{Uint8Array}}.
1. Append the bytes represented by |chunk| to |bytes|.
1. Increment |potentialResponse|'s [=response/body info=]'s [=response body info/encoded size=] by |bytes|'s {{Uint8Array/size}}.
1. Increment |potentialResponse|'s [=response/body info=]'s [=response body info/decoded size=] by |bytes|'s {{Uint8Array/size}}.
1. Perform ! [=DetachArrayBuffer=](|chunk|.\[[ViewedArrayBuffer]]).
: [=read request/close steps=]
::
Expand Down

0 comments on commit 5eb478f

Please sign in to comment.