HttpProxy¶
Module¶
The HttpProxy module provides a HTTP REST API, see HTTP Interface.
Most functions require a special permission, see vnx.permission_e.
Functions¶
-
void
publish
(Object sample, string topic)¶ Will publish a given
sample
on the specifiedtopic
. Requires permissionPUBLISH
. See vnx.Object.
-
Object
multi_request
(map<string, string> paths) const¶ Performs multiple
/api/
HTTP requests in one.paths
is a map from paths to output names, for example:[["/topic/...", "topic1"], ...]
The result will be a vnx.Object containing the individual results, for example:
{"topic1": {...}, ...}