Crates.io | wasmcloud-provider-httpserver |
lib.rs | wasmcloud-provider-httpserver |
version | 0.17.1 |
source | src |
created_at | 2023-03-27 20:41:47.808816 |
updated_at | 2023-03-27 20:41:47.808816 |
description | Http server for wasmcloud, using warp. This package provides a library, and a capability provider with the 'wasmcloud:httpserver' contract. |
homepage | |
repository | |
max_upload_size | |
id | 822453 |
size | 148,017 |
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
.
Configuration settings for the httpserver provider are described in settings.
The default listen address is 127.0.0.1 port 8000.
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.