Stream: wasi

Topic: Add `network-error-code`


view this post on Zulip Dave Bakker (badeend) (Sep 14 2024 at 11:49):

Hi! I'd like to add a network-error-code method to the wasi-sockets interface to downcast a stream error to a network-specific error. Similar to the existing filesystem-error-code and http-error-code functions. The fact that it wasn't already present in v0.2.0 was an oversight.

To me this seems like a no-brainer, but couldn't hurt to have a second pair of eyes look at it:
https://github.com/WebAssembly/wasi-sockets/pull/105

Add function to downcast a stream error to a network-related error. Similar to the existing filesystem-error-code and http-error-code functions. Wasmtime implementation is ready at: badeend/wasmtim...

Last updated: Dec 23 2024 at 12:05 UTC