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
sampleon the specifiedtopic. Requires permissionPUBLISH. See vnx.Object.
-
Object
multi_request(map<string, string> paths) const¶ Performs multiple
/api/HTTP requests in one.pathsis 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": {...}, ...}