From 5eb478f8875ae3b3fa0eb1dc4e7e527675617fd1 Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Mon, 28 Nov 2022 13:53:33 +0200 Subject: [PATCH] Increment encoded/decoded body size for constructed responses (#1664) Closes w3c/navigation-timing#124 --- docs/index.bs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/index.bs b/docs/index.bs index 2b75af7c..4f49c7d2 100644 --- a/docs/index.bs +++ b/docs/index.bs @@ -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=] ::