[−][src]Module http_guest::hostcalls
Bindings to the hostcalls exposed for the demo.
This API is probably not what you want to use directly. We
recommend instead using the Request
and Response
types
re-exported from the http
crate, and the RequestExt::send()
method.
Eventually this will be generated code, but wasm-bindgen
isn't
currently what we want, since it assumes JavaScript will be on the
other side of the FFI.
Re-exports
pub use crate::hostcalls::types::GuestSlice; |
pub use crate::hostcalls::types::HostcallStatus; |
pub use crate::hostcalls::types::PendingRequestHandle; |
pub use crate::hostcalls::types::PollResult; |
pub use crate::hostcalls::types::RequestHandle; |
pub use crate::hostcalls::types::ResponseHandle; |
Modules
raw | |
types |
Functions
debug | |
kvstore_append | |
kvstore_get | |
kvstore_insert | |
kvstore_remove | |
kvstore_upsert | |
select |
Select from a list of pending requests, blocking until one completes. |