diff --git a/fetch.bs b/fetch.bs index 122efc771..fa2e9bac5 100755 --- a/fetch.bs +++ b/fetch.bs @@ -8032,6 +8032,7 @@ interface mixin Body { [NewObject] Promise<FormData> formData(); [NewObject] Promise<any> json(); [NewObject] Promise<USVString> text(); + [NewObject] ReadableStream textStream(); };
Formats you would not want a network layer to be dependent upon, such as @@ -8073,6 +8074,9 @@ due course.
requestOrResponse . text()
Returns a promise fulfilled with requestOrResponse's body as string. + +
requestOrResponse . textStream()
+ Returns a {{ReadableStream}} with requestOrResponse's body as string chunks.
The textStream()
method steps are: