wasmCloud HTTP Client Actor Interface
This crate provides wasmCloud actors with an interface to the HTTP client capability provider. Actors using this
interface must have the claim wasmcloud:httpclient
in order to have permission to make outbound HTTP requests,
and they must have an active, configured binding to an HTTP Client capability provider.
wasmCloud actors without this permission and capability binding will be unable to make outbound HTTP requests.
Example:
use HandlerResult;
extern crate wasmcloud_actor_http_server as httpserver;
extern crate wasmcloud_actor_http_client as httpclient;
extern crate wasmcloud_actor_core as core;
const API_URL: &str = "https://wasmcloudapi.cloud.io/proxy";
/// This function proxys an inbound HTTP request to an external server