mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-11-05 01:24:06 +00:00
Implemented Worker::Api#fetch_url, check for launcher updates from github releases, refresh user session, merge application lists from both backends when user is signed in
This commit is contained in:
@@ -4,7 +4,8 @@ module W3DHubLauncher
|
||||
class Worker
|
||||
class Api
|
||||
# downloads requested resource, returns raw string
|
||||
def self.fetch_url
|
||||
def self.fetch_url(url, method = :get, headers = nil, body = nil, &block)
|
||||
Worker::Request.new(:fetch_url, { url: url, method: method, headers: headers, body: body }, &block)
|
||||
end
|
||||
|
||||
# downloads requested resource, periodically reporting progress until completion, returning path for file on disk
|
||||
|
||||
Reference in New Issue
Block a user