Component · version 0.1.2
ba:sample-wasi-http-js
Sample project demonstratingu JS project targeting WASI http
InstallCLIACP
Add this component to your project:
component install ba:sample-wasi-http-js@0.1.2Learn more about the component CLI.
Run this component without installing it:
component run ba:sample-wasi-http-js@0.1.2Learn more about the component CLI.
Ask your AI assistant to install it for you:
ba:sample-wasi-http-js@0.1.2Read more about Agent Client Protocol support.
Imports
I
wasi:io/poll 0.2.10
IA poll API intended to let users wait for I/O events on multiple handles at once.
wasi:clocks/monotonic-clock 0.2.10
IWASI Monotonic Clock is a clock API intended to let users measure elapsed time.
wasi:io/error 0.2.10
Iwasi:io/streams 0.2.10
IWASI I/O is an I/O abstraction API which is currently focused on providing stream types.
wasi:http/types 0.2.10
IThis 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.
wasi:cli/stdin 0.2.10
Iwasi:cli/stdout 0.2.10
Iwasi:cli/stderr 0.2.10
Iwasi:cli/terminal-input 0.2.10
ITerminal input.
wasi:cli/terminal-output 0.2.10
ITerminal output.
wasi:cli/terminal-stdin 0.2.10
IAn interface providing an optional
terminal-input for stdin as a link-time authority.wasi:cli/terminal-stdout 0.2.10
IAn interface providing an optional
terminal-output for stdout as a link-time authority.wasi:cli/terminal-stderr 0.2.10
IAn interface providing an optional
terminal-output for stderr as a link-time authority.wasi:clocks/wall-clock 0.2.10
IWASI Wall Clock is a clock API intended to let users query the current time. The name "wall" makes an analogy to a "clock on the wall", which is not necessarily monotonic as it may be reset.
wasi:filesystem/types 0.2.10
IWASI filesystem is a filesystem API primarily intended to let users run WASI programs that access their files on their existing filesystems, without significant overhead.
wasi:filesystem/preopens 0.2.10
Iwasi:random/random 0.2.10
IWASI Random is a random data API.
wasi:http/outgoing-handler 0.2.10
This interface defines a handler of outgoing HTTP Requests. It should be imported by components which wish to make HTTP Requests.
Components
Metadata
| Size | 16.8 MiB |
| Range | 0x0000–0x010C7A0A |
| Languages | JavaScript |
| Processed By | wit-componentv0.245.1 |
| Processed By | ComponentizeJSv0.20.0 |