wasmCloud HTTP Server Interface
This is the interface for an HTTP Server capability with the contract ID wasmcloud:httpserver
This folder contains
- Model definition for
wasmcloud:httpserver
- Generated documentation (in HTML)
- Generated Rust library (in Rust)
Any Rust actor or capability provider using wasmcloud:httpserver
should rely upon this library. A capability provider implements the trait HttpServerReceiver
.
Capability Provider Implementations
The following is a list of implementations of the wasmcloud:httpserver
contract. Feel free to submit a PR adding your implementation if you have a community/open source version.
Name | Vendor | Description |
---|---|---|
HTTPServer | wasmCloud | wasmCloud HTTP Server implementation using the highly scalable warp web server. |
Example Usage
🦀 Rust
Implementing the HttpServer.HandleRequest
operation
use *;
use ;
🐭Golang
Implementing the HttpServer.HandleRequest
operation
import (
"github.com/wasmcloud/actor-tinygo"
httpserver "github.com/wasmcloud/interfaces/httpserver/tinygo"
)
func main()
type Actor struct
func (ctx *actor.Context, req httpserver.HttpRequest) (*httpserver.HttpResponse, error)