This is the interface for an HTTP Server capability with the contract ID oneitfarm:httpserver
This folder contains
- Model definition for oneitfarm:httpserver
- Generated documentation (in HTML)
- Generated Rust library (in Rust)
Any Rust actor or capability provider using oneitfarm:httpserver
should rely upon this library. A capability provider implements the trait HttpServerReceiver
.
Implementing the HttpServer.HandleRequest
operation
```rust
use wasmbusrpc::actor::prelude::*;
use oneitfarminterface_httpserver::{HttpRequest, HttpResponse, HttpServer, HttpServerReceiver};
struct HelloActor {}
impl HttpServer for HelloActor {
async fn handlerequest(&self, _ctx: &Context, _req: &HttpRequest) -> RpcResult