Plugin interface: Add fucntion to API that uses mumbles internal SSL capability to read a webserver ressource #6365
Labels
feature-request
This issue or PR deals with a new feature
triage
This issue is waiting to be triaged by one of the project members
Context
Plugin API
Description
Please add a
mumble_getHTTPURL()
plugin API function to query the internet.If in my plugin
mumble_hasUpdate()
function I could just call somemumble_getHTTPURL("https://example.org")
function to utilize the already linked ssl engine of mumble, this would be beneficial in several places:mumble_hasUpdate()
could be much more simple.The requested
mumble_hasUpdate()
Plugin-API function should just try to lookup the web ressource (using TLS when the protocol part has ahttps://
prefix) and return either the HTTP error code or the contents of the page.Mumble component
Client
OS-specific?
No
Additional information
Basicly
mumble_hasUpdate()
probably just needs to leverage or expose the already existing mumble-code that gets called to actually fetch the updated plugin from the web, which is already part of the plugin updater process.Probably here?
mumble/src/mumble/PluginUpdater.cpp
Lines 80 to 90 in 23f7650
The text was updated successfully, but these errors were encountered: