diff --git a/imports.md b/imports.md
index 5dff42a..85ec2d0 100644
--- a/imports.md
+++ b/imports.md
@@ -12,8 +12,8 @@ It is intended to be include
d in other worlds.
wasi:cli/stderr@0.2.0
wasi:cli/stdin@0.2.0
wasi:clocks/monotonic-clock@0.2.0
wasi:http/types@0.2.0
wasi:http/outgoing-handler@0.2.0
wasi:http/types@0.2.1-draft
wasi:http/outgoing-handler@0.2.1-draft
wasi:clocks/wall-clock@0.2.0
pollable
>This interface defines all of the types and methods for implementing HTTP Requests and Responses, both incoming and outgoing, as well as their headers, trailers, and bodies.
@@ -971,6 +971,18 @@ the parentincoming-request
is drop
headers
>[method]incoming-request.take-headers: func
Gives the headers
associated with this request as an owned resource.
+Will only return success at most once, and subsequent calls will return
+error.
self
: borrow<incoming-request
>headers
>>[method]incoming-request.consume: func
Gives the incoming-body
associated with this request. Will only
return success at most once, and subsequent calls will return error.
incoming-body
>>[method]incoming-response.take-headers: func
Returns the headers
associated with this response as an owned
+resource. Will only return success at most once, and subsequent calls
+will return error.
self
: borrow<incoming-response
>headers
>>[method]incoming-body.stream: func
Returns the contents of the body, as a stream of bytes.
Returns success on first call: the stream representing the contents
@@ -1447,7 +1471,7 @@ but those will be reported by the incoming-body
>,
incoming-response
error-code
>>>
-
This interface defines a handler of outgoing HTTP Requests. It should be imported by components which wish to make HTTP Requests.
wasi:clocks/monotonic-clock@0.2.0
wasi:io/error@0.2.0
wasi:io/streams@0.2.0
wasi:http/types@0.2.0
wasi:http/types@0.2.1-draft
wasi:random/random@0.2.0
wasi:cli/stdout@0.2.0
wasi:cli/stderr@0.2.0
wasi:cli/stdin@0.2.0
wasi:http/outgoing-handler@0.2.0
wasi:http/outgoing-handler@0.2.1-draft
wasi:clocks/wall-clock@0.2.0
wasi:http/incoming-handler@0.2.0
wasi:http/incoming-handler@0.2.1-draft
splice
.
u64
, stream-error
>This interface defines all of the types and methods for implementing HTTP Requests and Responses, both incoming and outgoing, as well as their headers, trailers, and bodies.
@@ -906,6 +906,18 @@ the parentincoming-request
is drop
headers
>[method]incoming-request.take-headers: func
Gives the headers
associated with this request as an owned resource.
+Will only return success at most once, and subsequent calls will return
+error.
self
: borrow<incoming-request
>headers
>>[method]incoming-request.consume: func
Gives the incoming-body
associated with this request. Will only
return success at most once, and subsequent calls will return error.
incoming-body
>>[method]incoming-response.take-headers: func
Returns the headers
associated with this response as an owned
+resource. Will only return success at most once, and subsequent calls
+will return error.
self
: borrow<incoming-response
>headers
>>[method]incoming-body.stream: func
Returns the contents of the body, as a stream of bytes.
Returns success on first call: the stream representing the contents
@@ -1454,7 +1478,7 @@ represented as a u64
.
input-stream
>This interface defines a handler of outgoing HTTP Requests. It should be imported by components which wish to make HTTP Requests.
type incoming-request