Expand description
§Sololc Webhook SDK
Provides a high-performance, modern, and ergonomic WASI-HTTP Webhook SDK optimized for the Sololc Runtime.
This crate simplifies the development of Webhook microservices by abstracting raw WebAssembly System Interface (WASI) HTTP components into a routing style reminiscent of mainstream Rust web frameworks (such as Axum or Actix-web).
Re-exports§
pub use exports::wasi::http::incoming_handler::Guest;pub use self::wasi::http::types::Fields;pub use self::wasi::http::types::IncomingRequest;pub use self::wasi::http::types::OutgoingResponse;pub use self::wasi::http::types::ResponseOutparam;pub use crate::http_client::client::HttpClient;
Modules§
Structs§
- Request
- Exposes the ergonomic high-level wrapper types.
- Response
- Exposes the ergonomic high-level wrapper types.
Attribute Macros§
- delete
- Routes an incoming HTTP
DELETErequest to the annotated handler function. - get
- Routes an incoming HTTP
GETrequest to the annotated handler function. - head
- Routes an incoming HTTP
HEADrequest to the annotated handler function. - options
- Routes an incoming HTTP
OPTIONSrequest to the annotated handler function. - patch
- Routes an incoming HTTP
PATCHrequest to the annotated handler function. - post
- Routes an incoming HTTP
POSTrequest to the annotated handler function. - put
- Routes an incoming HTTP
PUTrequest to the annotated handler function.