Difference between revisions of "UrlLoader:load"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2012.2.2<br/> | '''Available since:''' Gideros 2012.2.2<br/> | ||
=== Description === | === Description === | ||
− | <br /> | + | <translate><br /> |
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.<br /> | ||
− | Please refer to [[UrlLoader.new]] for more detailed description of | + | Please refer to [[UrlLoader.new]] for more detailed description of [[[url`, `method` and `body]]] parameters.<br /> |
− | <br /> | + | <br /></translate> |
<source lang="lua"> | <source lang="lua"> | ||
UrlLoader:load(url,method,headers,body) | UrlLoader:load(url,method,headers,body) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''url''': (string, optional) URL to download. This parameter is optional and if specified loading starts immediately. <br/> | + | '''url''': (string, optional) <translate>URL to download. This parameter is optional and if specified loading starts immediately.</translate> <br/> |
− | '''method''': (string, default = "get") HTTP request method. <br/> | + | '''method''': (string, default = "get") <translate>HTTP request method.</translate> <br/> |
− | '''headers''': (table, optional) HTTP headers. <br/> | + | '''headers''': (table, optional) <translate>HTTP headers.</translate> <br/> |
− | '''body''': (string, optional) HTTP body data. This data is sent as the message body of a request. <br/> | + | '''body''': (string, optional) <translate>HTTP body data. This data is sent as the message body of a request.</translate> <br/> |
Revision as of 13:34, 23 August 2018
Available since: Gideros 2012.2.2
Description
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.
UrlLoader:load(url,method,headers,body)
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.