@@ -277,7 +277,9 @@ interface types {
277277 /// This function may be called multiple times.
278278 /// If it is called while either a stream or future returned by a previous
279279 /// call to this function is still open, those handles will be closed
280- /// with an error context.
280+ /// with an error context. Thus there will always be at most one readable stream
281+ /// open for a given body. Each subsequent stream picks up where the last
282+ /// stream left off, up until `finish` is called.
281283 %stream : func () -> tuple <stream <u8 >, future <result <_ , error-code >>>;
282284
283285 /// Takes ownership of `body` , and returns an unresolved optional `trailers` result.
@@ -371,8 +373,8 @@ interface types {
371373 /// body will be transitioned into an "error state" and all operations
372374 /// on it will fail.
373375 ///
374- /// In case, that a `body.finish` was called on the body returned by a previous
375- /// call to this function, this function returns `none` .
376+ /// Once `body.finish` is called on a body returned by this method,
377+ /// all subsequent calls to this method will return `none` .
376378 body : func () -> option <body >;
377379
378380 /// Takes ownership of the `request` and returns the `headers` , `body`
@@ -381,10 +383,10 @@ interface types {
381383 /// The headers returned by this function are considered to be a clone of the headers
382384 /// of the request. Changes to the `headers` returned by this function will not be reflected
383385 /// in the immutable `headers` resources, that could have been acquired by calls to `headers`
384- /// prior to this function being called.
386+ /// prior to this method being called.
385387 ///
386- /// In case, that a `body.finish` was called on the body returned by a previous
387- /// call to `body` , this function returns body as `none` .
388+ /// Once `body.finish` is called on a body returned by a previous
389+ /// call to `body` method , this method returns body as `none` .
388390 into-parts : static func (this : request ) -> tuple <headers , option <body >, option <request-options >>;
389391 }
390392
@@ -467,8 +469,8 @@ interface types {
467469 /// body will be transitioned into an "error state" and all operations
468470 /// on it will fail.
469471 ///
470- /// In case, that a `body.finish` was called on the body returned by a previous
471- /// call to this function, this function returns `none` .
472+ /// Once `body.finish` is called on a body returned by this method,
473+ /// all subsequent calls to this method will return `none` .
472474 body : func () -> option <body >;
473475
474476 /// Takes ownership of the `response` and returns the `headers` and `body` ,
@@ -477,10 +479,10 @@ interface types {
477479 /// The headers returned by this function are considered to be a clone of the headers
478480 /// of the response. Changes to the `headers` returned by this function will not be reflected
479481 /// in the immutable `headers` resources, that could have been acquired by calls to `headers`
480- /// prior to this function being called.
482+ /// prior to this method being called.
481483 ///
482- /// In case, that a `body.finish` was called on the body returned by a previous
483- /// call to `body` , this function returns body as `none` .
484+ /// Once `body.finish` is called on a body returned by a previous
485+ /// call to `body` method , this method returns body as `none` .
484486 into-parts : static func (this : response ) -> tuple <headers , option <body >>;
485487 }
486488}
0 commit comments