Skip to content

Commit 666b49d

Browse files
Update types.wit with some documentation improvements. (#26)
* Update types.wit with some documentation improvements. * Update types.wit * Update wit/types.wit Co-authored-by: Luke Wagner <[email protected]> --------- Co-authored-by: Luke Wagner <[email protected]>
1 parent acbc244 commit 666b49d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

wit/types.wit

+6
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ interface types {
9595
// are shared with the request, with all mutations visible to all uses.
9696
// Components MUST avoid updating `headers` and `trailers` after passing a
9797
// request that points to them to the outside world.
98+
// The streams returned by `consume` and `write` are owned by the request and
99+
// response objects. The streams are destroyed when the request/response is
100+
// dropped, thus a client MUST drop any handle referring to a request/response stream
101+
// before dropping the request/response or passing ownership of the request/response
102+
// to the outside world. The caller can also call drop on the stream before the
103+
// request/response is dropped if they want to release resources earlier.
98104
type incoming-request = u32
99105
type outgoing-request = u32
100106
drop-incoming-request: func(request: incoming-request)

0 commit comments

Comments
 (0)