wasmcloud-provider-httpserver

Crates.iowasmcloud-provider-httpserver
lib.rswasmcloud-provider-httpserver
version0.17.1
sourcesrc
created_at2023-03-27 20:41:47.808816
updated_at2023-03-27 20:41:47.808816
descriptionHttp server for wasmcloud, using warp. This package provides a library, and a capability provider with the 'wasmcloud:httpserver' contract.
homepage
repository
max_upload_size
id822453
size148,017
wasmCloud Automation Bot (wasmcloud-automation)

documentation

README

wasmCloud HTTP Server Provider

This capability provider implements the wasmcloud:httpserver capability contract, and enables an actor to accept incoming HTTP(s) requests. It is implemented in Rust with the warp web server framework and the fast and scalable hyper http implementation.

For more information on the operations supported by this provider, please check out its corresponding interface.

Run make to compile to a native executable and build the par file. The par file is created in build/httpserver.par.gz.

Link Definition Configuration Settings

Configuration settings for the httpserver provider are described in settings.

The default listen address is 127.0.0.1 port 8000.

⚠️ Caution - Port Ownership

If the instance of this capability provider running on a single host is linked to multiple actors attempting to claim the same port, only the first link definition for that port will succeed, and the subsequent attempts will fail. During development, it is recommended to check ("tail") the wasmCloud host logs for success and error messages.

For more hands-on tutorials on building actors, including HTTP server actors, see the wasmcloud.dev website.

Commit count: 0

cargo fmt