mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-06 22:01:27 +03:00
add: Preliminary support for flutter front-end calling rust back-end http request
This commit is contained in:
@@ -874,9 +874,8 @@ pub fn main_get_api_server() -> String {
|
||||
get_api_server()
|
||||
}
|
||||
|
||||
// This function doesn't seem to be used.
|
||||
pub fn main_post_request(url: String, body: String, header: String) {
|
||||
post_request(url, body, header)
|
||||
pub fn main_http_request(url: String, method: String, body: String, header: String) {
|
||||
http_request(url,method, body, header)
|
||||
}
|
||||
|
||||
pub fn main_get_local_option(key: String) -> SyncReturn<String> {
|
||||
|
||||
Reference in New Issue
Block a user