From f893408e92271a439ef9bc7850f14da97842afaa Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 27 Oct 2025 11:25:04 -0700 Subject: [PATCH 1/4] Use `.` instead of `/` for interface members. Say: ``` wasi:io/streams.stream-error ``` instead of: ``` wasi:io/streams/stream-error ``` This better aligns with WIT's `use` syntax and the upcoming nested namespaces feature in WIT. --- wit/types.wit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wit/types.wit b/wit/types.wit index 7af8b96..f91ee1f 100644 --- a/wit/types.wit +++ b/wit/types.wit @@ -110,8 +110,8 @@ interface types { /// provided. /// /// Stream operations which return - /// `wasi:io/stream/stream-error::last-operation-failed` have a payload of - /// type `wasi:io/error/error` with more information about the operation + /// `wasi:io/stream.stream-error.last-operation-failed` have a payload of + /// type `wasi:io/error.error` with more information about the operation /// that failed. This payload can be passed through to this function to see /// if there's http-related information about the error to return. /// From a9361b427435ee0f3251395b040b24f9c78d4330 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 27 Oct 2025 14:15:27 -0700 Subject: [PATCH 2/4] Renegerate markdown files with wit-bindgen 0.43.1. --- imports.md | 23 ++--------------------- proxy.md | 23 ++--------------------- 2 files changed, 4 insertions(+), 42 deletions(-) diff --git a/imports.md b/imports.md index 7926bb3..d9f34f2 100644 --- a/imports.md +++ b/imports.md @@ -812,8 +812,8 @@ provide the HTTP Response corresponding to the sent Request.

Attempts to extract a http-related error from the wasi:io error provided.

Stream operations which return -wasi:io/stream/stream-error::last-operation-failed have a payload of -type wasi:io/error/error with more information about the operation +wasi:io/stream.stream-error.last-operation-failed have a payload of +type wasi:io/error.error with more information about the operation that failed. This payload can be passed through to this function to see if there's http-related information about the error to return.

Note that this function is fallible because not all io-errors are @@ -1236,25 +1236,6 @@ supported.

-

[method]response-outparam.send-informational: func

-

Send an HTTP 1xx response.

-

Unlike response-outparam.set, this does not consume the -response-outparam, allowing the guest to send an arbitrary number of -informational responses before sending the final response using -response-outparam.set.

-

This will return an HTTP-protocol-error if status is not in the -range [100-199], or an internal-error if the implementation does not -support informational responses.

-
Params
- -
Return values
-

[static]response-outparam.set: func

Set the value of the response-outparam to either send a response, or indicate an error.

diff --git a/proxy.md b/proxy.md index ad6baf8..df37da4 100644 --- a/proxy.md +++ b/proxy.md @@ -819,8 +819,8 @@ provide the HTTP Response corresponding to the sent Request.

Attempts to extract a http-related error from the wasi:io error provided.

Stream operations which return -wasi:io/stream/stream-error::last-operation-failed have a payload of -type wasi:io/error/error with more information about the operation +wasi:io/stream.stream-error.last-operation-failed have a payload of +type wasi:io/error.error with more information about the operation that failed. This payload can be passed through to this function to see if there's http-related information about the error to return.

Note that this function is fallible because not all io-errors are @@ -1243,25 +1243,6 @@ supported.

-

[method]response-outparam.send-informational: func

-

Send an HTTP 1xx response.

-

Unlike response-outparam.set, this does not consume the -response-outparam, allowing the guest to send an arbitrary number of -informational responses before sending the final response using -response-outparam.set.

-

This will return an HTTP-protocol-error if status is not in the -range [100-199], or an internal-error if the implementation does not -support informational responses.

-
Params
- -
Return values
-

[static]response-outparam.set: func

Set the value of the response-outparam to either send a response, or indicate an error.

From 8a1b96fbb60acf0d52b362d25cc00273235a2868 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 27 Oct 2025 15:03:23 -0700 Subject: [PATCH 3/4] Update to WebAssembly/wit-abi-up-to-date@v25. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7154254..0540b77 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ jobs: chmod +x ./wit-deps ./wit-deps lock --check ./wit-deps -m wit-0.3.0-draft/deps.toml -l wit-0.3.0-draft/deps.lock -d wit-0.3.0-draft/deps lock --check - - uses: WebAssembly/wit-abi-up-to-date@v24 + - uses: WebAssembly/wit-abi-up-to-date@v25 with: worlds: 'imports proxy' all-features: 'true' From c0a19578b8b124371b1121b87146e3db2e9b4b52 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 27 Oct 2025 15:35:19 -0700 Subject: [PATCH 4/4] Generate docs with --all-features. --- imports.md | 19 +++++++++++++++++++ proxy.md | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/imports.md b/imports.md index d9f34f2..b099e2e 100644 --- a/imports.md +++ b/imports.md @@ -1236,6 +1236,25 @@ supported.

  • result
+

[method]response-outparam.send-informational: func

+

Send an HTTP 1xx response.

+

Unlike response-outparam.set, this does not consume the +response-outparam, allowing the guest to send an arbitrary number of +informational responses before sending the final response using +response-outparam.set.

+

This will return an HTTP-protocol-error if status is not in the +range [100-199], or an internal-error if the implementation does not +support informational responses.

+
Params
+ +
Return values
+

[static]response-outparam.set: func

Set the value of the response-outparam to either send a response, or indicate an error.

diff --git a/proxy.md b/proxy.md index df37da4..aed35c1 100644 --- a/proxy.md +++ b/proxy.md @@ -1243,6 +1243,25 @@ supported.

  • result
+

[method]response-outparam.send-informational: func

+

Send an HTTP 1xx response.

+

Unlike response-outparam.set, this does not consume the +response-outparam, allowing the guest to send an arbitrary number of +informational responses before sending the final response using +response-outparam.set.

+

This will return an HTTP-protocol-error if status is not in the +range [100-199], or an internal-error if the implementation does not +support informational responses.

+
Params
+ +
Return values
+

[static]response-outparam.set: func

Set the value of the response-outparam to either send a response, or indicate an error.