wasmcloud_core

Module http

Source
Expand description

Common Configuration settings for the http server provider and built in http server. This requires that the http feature be enabled.

The “values” map in the component link definition may contain one or more of the following keys, which determine how the configuration is parsed.

For the key… config_file: load configuration from file name. Interprets file as json

Structs§

Enums§

Functions§

  • Load settings provides a flexible means for loading configuration. Return value is any structure with Deserialize, or for example, HashMap<String,String> config_b64: base64-encoded json string config_json: raw json string Also accept “address” (a string representing SocketAddr) and “port”, a localhost port If more than one key is provided, they are processed in the order above. (later names override earlier names in the list)