WASI
WASI copied to clipboard
Require network handle
wasi-sockets requires a network handle to be passed to operations that talk with the outside world. Example: tcp::connect
/// An opaque resource that represents access to (a subset of) the network.
/// This enables context-based security for networking.
/// There is no need for this to map 1:1 to a physical network interface.
resource network
Even though this network resource is defined in the wasi-sockets repo, there is nothing socket-specific about it.
Should wasi-http require this handle too?
Edit: the http proxy world might do fine without, but I'm mainly coming at this from the cli world perspective.