UrlLoader:load: Difference between revisions

From GiderosMobile
No edit summary
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2012.2.2<br/>
'''Available since:''' Gideros 2012.2.2<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/UrlLoader|UrlLoader]]<br/>
'''Class:''' [[UrlLoader]]<br/>
=== <translate>Description</translate> ===
 
<translate><br />
=== Description ===
Loads data from the specified URL. If there is any load operation in progress, it is terminated and new progress starts.<br />
Loads data from the specified URL. If there is any load operation in progress, it is terminated and new progress starts.
Please refer to [[UrlLoader.new]] for more detailed description of ''url'', ''method'' and ''body'' parameters.<br />
<syntaxhighlight lang="lua">
<br /></translate>
UrlLoader:load(url,method,headers,body)
<source lang="lua">
</syntaxhighlight>
UrlLoader:load(url,method,headers,body)
 
</source>
Please refer to [[UrlLoader.new]] for more detailed description of ''url'', ''method'' and ''body'' parameters.
=== <translate>Parameters</translate> ===
 
'''url''': (string, optional) <translate>URL to download. This parameter is optional and if specified loading starts immediately.</translate> <br/>
=== Parameters ===
'''method''': (string, default = &quot;get&quot;) <translate>HTTP request method.</translate> <br/>
'''url''': (string, optional) URL to download. This parameter is optional and if specified loading starts immediately<br/>
'''headers''': (table, optional) <translate>HTTP headers.</translate> <br/>
'''method''': (string, default = "get") HTTP request method
'''body''': (string, optional) <translate>HTTP body data. This data is sent as the message body of a request.</translate> <br/>
'''headers''': (table, optional) HTTP headers
'''body''': (string, optional) HTTP body data. This data is sent as the message body of a request
 
{{UrlLoader}}

Latest revision as of 09:46, 27 July 2026

Available since: Gideros 2012.2.2
Class: UrlLoader

Description

Loads data from the specified URL. If there is any load operation in progress, it is terminated and new progress starts.

UrlLoader:load(url,method,headers,body)

Please refer to UrlLoader.new for more detailed description of url, method and body parameters.

Parameters

url: (string, optional) URL to download. This parameter is optional and if specified loading starts immediately
method: (string, default = "get") HTTP request method headers: (table, optional) HTTP headers body: (string, optional) HTTP body data. This data is sent as the message body of a request