wasmtime_wasi_http/
bindings.rs#[allow(missing_docs)]
mod generated {
use crate::body;
use crate::types;
wasmtime::component::bindgen!({
path: "wit",
world: "wasi:http/proxy",
tracing: true,
async: {
only_imports: ["nonexistent"],
},
trappable_imports: true,
require_store_data_send: true,
with: {
"wasi:io": wasmtime_wasi::bindings::io,
"wasi:http/types/outgoing-body": body::HostOutgoingBody,
"wasi:http/types/future-incoming-response": types::HostFutureIncomingResponse,
"wasi:http/types/outgoing-response": types::HostOutgoingResponse,
"wasi:http/types/future-trailers": body::HostFutureTrailers,
"wasi:http/types/incoming-body": body::HostIncomingBody,
"wasi:http/types/incoming-response": types::HostIncomingResponse,
"wasi:http/types/response-outparam": types::HostResponseOutparam,
"wasi:http/types/outgoing-request": types::HostOutgoingRequest,
"wasi:http/types/incoming-request": types::HostIncomingRequest,
"wasi:http/types/fields": types::HostFields,
"wasi:http/types/request-options": types::HostRequestOptions,
},
trappable_error_type: {
"wasi:http/types/error-code" => crate::HttpError,
},
});
}
pub use self::generated::wasi::*;
pub use self::generated::exports;
pub use self::generated::{Proxy, ProxyIndices, ProxyPre};
pub mod sync {
#[allow(missing_docs)]
mod generated {
#![allow(missing_docs)]
wasmtime::component::bindgen!({
world: "wasi:http/proxy",
tracing: true,
async: false,
with: {
"wasi:http": crate::bindings::http, "wasi:io": wasmtime_wasi::bindings::sync::io, "wasi": wasmtime_wasi::bindings, },
require_store_data_send: true,
});
}
pub use self::generated::wasi::*;
pub use self::generated::exports;
pub use self::generated::{Proxy, ProxyIndices, ProxyPre};
}