OpenSpace3D libs
OpenSpace 3D libraries for plugITs and OS3D developer
|
Functions | |
clearHttpRequest () | |
Kill all current download requests. More... | |
killHttpRequest (req) | |
Kill a download request. More... | |
clearHttpCookies () | |
Clear all http cookies. More... | |
getHttpDomain (url) | |
Get the domain of an url. More... | |
getHtmlHeader (cont) | |
Get Html header from an http response. More... | |
getHtmlStatus (header) | |
Get Html Status code from header. More... | |
downloadFile (file, cbfun) | |
Download an url. More... | |
getUrlContentLenght (file, cbfun) | |
Get content size of an url. More... | |
getUrl (url, params, cbfun) | |
Download an url using the GET method. More... | |
postUrl (url, params, cbfun) | |
Download an url using the POST method. More... | |
postUrlMultiPart (url, lparams, cbfun) | |
Download an url using the POST method with multipart. More... | |
deleteUrl (url, params, cbfun) | |
Call the DELETE method on an url. More... | |
Detailed Description
Network requests and download tools
Function Documentation
◆ clearHttpRequest()
clearHttpRequest | ( | ) |
Kill all current download requests.
Prototype: fun [] I
- Returns
- 0
◆ killHttpRequest()
killHttpRequest | ( | req | ) |
Kill a download request.
Prototype: fun [ObjCURL] I
- Parameters
-
ObjCURL : the request to kill
- Returns
- 0
◆ clearHttpCookies()
clearHttpCookies | ( | ) |
Clear all http cookies.
Prototype: fun [] I
- Returns
- 0
◆ getHttpDomain()
getHttpDomain | ( | url | ) |
Get the domain of an url.
Prototype: fun [S] S
- Parameters
-
S : the url
- Returns
- S : the url domain
◆ getHtmlHeader()
getHtmlHeader | ( | cont | ) |
Get Html header from an http response.
Prototype: fun [S] S
- Parameters
-
S : the response
- Returns
- S : the header
◆ getHtmlStatus()
getHtmlStatus | ( | header | ) |
Get Html Status code from header.
Prototype: fun [S] I
- Parameters
-
S : the header
- Returns
- I : the html status code
◆ downloadFile()
downloadFile | ( | file | , |
cbfun | |||
) |
Download an url.
Prototype: fun [S fun [S S] u0] I
- Parameters
-
S : the url to download fun [S S] u0 : the callback with url and data
- Returns
- ObjCURL : the new request
◆ getUrlContentLenght()
getUrlContentLenght | ( | file | , |
cbfun | |||
) |
Get content size of an url.
Prototype: fun [S fun [S I] u0] I
- Parameters
-
S : the url to download fun [S I] u0 : the callback with url and content length
- Returns
- ObjCURL : the new request
◆ getUrl()
getUrl | ( | url | , |
params | , | ||
cbfun | |||
) |
Download an url using the GET method.
Prototype: fun [S S fun [S S] u0] I
- Parameters
-
S : the url to download S : the url parameters ("login=toto&pass=tata") fun [S S] u0 : the callback with url and data
- Returns
- ObjCURL : the new request
◆ postUrl()
postUrl | ( | url | , |
params | , | ||
cbfun | |||
) |
Download an url using the POST method.
Prototype: fun [S S fun [S S] u0] I
- Parameters
-
S : the url to download S : the url parameters ("login=toto&pass=tata") fun [S S] u0 : the callback with url and data
- Returns
- ObjCURL : the new request
◆ postUrlMultiPart()
postUrlMultiPart | ( | url | , |
lparams | , | ||
cbfun | |||
) |
Download an url using the POST method with multipart.
Prototype: fun [S [[S S S] r1] fun [S S] u0] I
- Parameters
-
S : the url to download [[S S S] r1]: list of parameters [name value file] fun [S S] u0 : the callback with url and data
- Returns
- ObjCURL : the new request
◆ deleteUrl()
deleteUrl | ( | url | , |
params | , | ||
cbfun | |||
) |
Call the DELETE method on an url.
Prototype: fun [S S fun [S S] u0] I
- Parameters
-
S : the url S : the url parameters ("login=toto&pass=tata") fun [S S] u0 : the callback with url and data
- Returns
- ObjCURL : the new request
Generated on Thu Aug 24 2017 10:05:23 for OpenSpace3D libs by
