Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/crates/wasi-http/src/p3/bindings.rs
1692 views
1
//! Raw bindings to the `wasi:http` package.
2
3
#[expect(missing_docs, reason = "generated code")]
4
mod generated {
5
wasmtime::component::bindgen!({
6
path: "src/p3/wit",
7
world: "wasi:http/proxy",
8
imports: {
9
"wasi:http/handler/[async]handle": async | store | trappable | tracing,
10
"wasi:http/types/[static]request.new": async | store | trappable | tracing,
11
"wasi:http/types/[static]response.new": async | store | trappable | tracing,
12
default: trappable | tracing,
13
},
14
exports: { default: async | store },
15
});
16
}
17
18
pub use self::generated::wasi::*;
19
20
/// Raw bindings to the `wasi:http/proxy` exports.
21
pub use self::generated::exports;
22
23
/// Bindings to the `wasi:http/proxy` world.
24
pub use self::generated::{Proxy, ProxyIndices, ProxyPre};
25
26