Jump to content

Development/Tutorials/Plasma4/JavaScript/API-HTTP: Difference between revisions

From KDE TechBase
Aseigo (talk | contribs)
Created page with '= HTTP = This Extension provides access to data and files via http and https using asynchronous IOJob objects. Functions: * ''IOJob'' ''...'
 
D ed (talk | contribs)
 
(No difference)

Latest revision as of 23:27, 11 September 2014

HTTP

This Extension provides access to data and files via http and https using asynchronous IOJob objects.

Functions:

  • IOJob getUrl(Url url): attempts to fetch the file using an IOJob
  • IOJob getUrl(String url): attempts to fetch the file using an IOJob
  • bool openUrl([string|Url] url): (API v4) Opens the url in the default application (or asks the user if there is no default application for the file). The url parameter may be either a string or a Url. Returns true on success, false on failure.