wasi-experimental-http

时间:2021-03-19 02:26:19
【文件属性】:
文件名称:wasi-experimental-http
文件大小:27KB
文件格式:ZIP
更新时间:2021-03-19 02:26:19
Rust wasi-experimental-http 此实验旨在提供暂时性的解决方法,直到WASI网络API稳定并通过使用wasi_experiemental_http_wasmtime板条箱与兼容wasi_experiemental_http_wasmtime 。我们希望,一旦在语言工具链中被采用和实现,对该库的需求将消失。 编写发出HTTP请求的模块 我们使用wasi-experimental-http板条箱(来自此存储库)和http板条箱从WebAssembly模块创建HTTP请求,使用该请求对运行时进行主机调用,然后返回响应: use bytes :: Bytes; use http; use wasi_experimental_http; #[no_mangle] pub extern "C" fn _start () { let url = "https://postman-
【文件预览】:
wasi-experimental-http-main
----build.rs(1KB)
----readme.md(6KB)
----.github()
--------workflows()
----crates()
--------wasi-experimental-http-wasmtime()
--------wasi-experimental-http()
--------as()
----tests()
--------rust()
--------integration.rs(3KB)
--------as()
----LICENSE(1KB)
----Cargo.toml(717B)
----.gitignore(46B)

网友评论