diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2024-09-06 03:17:54 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2024-09-06 03:17:54 +0100 |
commit | 516004de4170baf52f322c274efbccf0d9cc2a9c (patch) | |
tree | b7a0f3deca1abeaa36aacd46f1235700893c94fa /c/wasi-http/wit | |
parent | 008f8b229e8e8d016d47c5b3cbf9b04324f03351 (diff) | |
download | project_blackbird-516004de4170baf52f322c274efbccf0d9cc2a9c.tar.gz project_blackbird-516004de4170baf52f322c274efbccf0d9cc2a9c.tar.bz2 |
w-h/0.2.0: Add a new example program env-var
This shows how to get access to the environment variables and echos
them back to the client.
We need to include wasi:cli/environment@0.2.0 in the proxy world.
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'c/wasi-http/wit')
-rw-r--r-- | c/wasi-http/wit/wasi-http/0.2.0/proxy.wit | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/c/wasi-http/wit/wasi-http/0.2.0/proxy.wit b/c/wasi-http/wit/wasi-http/0.2.0/proxy.wit index 687c24d..60b9932 100644 --- a/c/wasi-http/wit/wasi-http/0.2.0/proxy.wit +++ b/c/wasi-http/wit/wasi-http/0.2.0/proxy.wit @@ -20,6 +20,8 @@ world proxy { /// when this import is properly removed. import wasi:cli/stdin@0.2.0; + import wasi:cli/environment@0.2.0; + /// This is the default handler to use when user code simply wants to make an /// HTTP request (e.g., via `fetch()`). import outgoing-handler; |