restmanaged Lua Interface¶
get¶
Get a pointer to the RESTHandler object
- Arguments:
- any ptr Pointer to Module object
- Returns:
- restmanaged ptr Pointer to casted RESTHandler object
Example
ptr = restmanaged:.get(ptr)
getName¶
Get the plugin name
Arguments:
- Returns:
- string name Plugin Name
Example
name = restmanaged:.getName()
webclient_post¶
Do a HTTP POST to an url
- Arguments:
- string ip Url to post to
- string path Url path to post to
- string payload Data to send
- Returns:
- string result POST result
Example
result = restmanaged:.webclient_post(ip,path,payload)
webclient_post¶
Do a HTTP POST to an url
- Arguments:
- string ip Url to get from
- string path Url path to get from
- Returns:
- string result GET result
Example
result = restmanaged:.webclient_post(ip,path)