summaryrefslogtreecommitdiff
path: root/c/wasi-http/0.2.0
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-11-28 23:53:57 +0000
committerAndrew Clayton <a.clayton@nginx.com>2023-11-28 23:58:28 +0000
commit76a6880605195d253dd4837204a252816bd5a396 (patch)
tree08621e679127f757e367671aee497396b62bb013 /c/wasi-http/0.2.0
parente3a37a1bb4908b02553096afaeb380dbc85bb7bb (diff)
downloadproject_blackbird-76a6880605195d253dd4837204a252816bd5a396.tar.gz
project_blackbird-76a6880605195d253dd4837204a252816bd5a396.tar.bz2
Add a wasi-http echo-request component in C
This adds a wasi-http version of luw-echo-request.c[0] This works under the wasmtime v15 CLI serve command. e.g $ ~/src/c/wasm/wasmtime-v15.0.0-x86_64-linux/wasmtime serve c/wasi-http/echo-request/component.wasm Serving HTTP on http://0.0.0.0:8080/ $ curl localhost:8080/hello *** Welcome to WebAssembly with wasi-http / C *** [Request Info] REQUEST_PATH = /hello METHOD = GET QUERY = [Request Headers] host = localhost:8080 user-agent = curl/8.2.1 accept = */* [0]: <https://github.com/nginx/unit-wasm/blob/main/examples/c/luw-echo-request.c> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'c/wasi-http/0.2.0')
0 files changed, 0 insertions, 0 deletions