Path: blob/main/crates/wasi-http/src/p3/bindings.rs
3090 views
//! Raw bindings to the `wasi:http` package.12#[expect(missing_docs, reason = "generated code")]3mod generated {4wasmtime::component::bindgen!({5path: "src/p3/wit",6world: "wasi:http/service",7imports: {8"wasi:http/client.send": store | trappable | tracing,9"wasi:http/types.[drop]request": store | trappable | tracing,10"wasi:http/types.[drop]response": store | trappable | tracing,11"wasi:http/types.[static]request.consume-body": store | trappable | tracing,12"wasi:http/types.[static]request.new": store | trappable | tracing,13"wasi:http/types.[static]response.consume-body": store | trappable | tracing,14"wasi:http/types.[static]response.new": store | trappable | tracing,15default: trappable | tracing,16},17exports: { default: async | store | task_exit },18with: {19"wasi:http/types.fields": with::Fields,20"wasi:http/types.request": crate::p3::Request,21"wasi:http/types.request-options": with::RequestOptions,22"wasi:http/types.response": crate::p3::Response,23},24trappable_error_type: {25"wasi:http/types.error-code" => crate::p3::HttpError,26"wasi:http/types.header-error" => crate::p3::HeaderError,27"wasi:http/types.request-options-error" => crate::p3::RequestOptionsError,28},29});3031mod with {32pub type Fields = crate::p3::MaybeMutable<http::HeaderMap>;33pub type RequestOptions = crate::p3::MaybeMutable<crate::p3::RequestOptions>;34}35}3637pub use self::generated::wasi::*;3839/// Raw bindings to the `wasi:http/service` exports.40pub use self::generated::exports;4142/// Bindings to the `wasi:http/service` world.43pub use self::generated::{Service, ServiceIndices, ServicePre};444546