This release includes many bug fixes but also adds a feature to set custom timeout values for each HTTP request.
To set a timeout for a HTTP request, set the timeout
field in the options table before passing it along to http.request
, simply like this:
local function http_result(self, id, response)
print(response.status)
print(response.response)
pprint(response.headers)
end
local options = {}
options['timeout'] = 1.0 -- one second
http.request("http://www.google.com", "GET", http_result, {}, "", options)
New features
- Added a
timeout
option tohttp.request
Bug fixes
- Fixed FB API
to
string field and added newrecipients
table field - Fixed FB HTML5 crash
- Fixed bug where HTTP requests could return multiple responses in one request
- Fixed SecurityException VIBRATE on push notification
- Fixed bug where custom easing causes engine crash in combination with enum easing
- Fixed fall back on NullSoundDevice on Android
- Fixed bug when scheduling a long local push on Android
- Fixed so that the most recent push is saved on iOS if callback is not set
Documentation
- Added Facebook API