![]() |
GlyEngine 0.1.2
Create games and apps with lua
|
Functions | |
local function | json () |
json response | |
local function | noforce () |
not force protocol | |
local function | fast () |
reduced response | |
local function | param (name, value) |
local function | header (name, value) |
local function | body (content) |
local function | success (handler_func) |
local function | failed (handler_func) |
local function | error (handler_func) |
http
local function body | ( | content | ) |
Content-Type: application/json
, but for this you previously need to require json
local function error | ( | handler_func | ) |
local function failed | ( | handler_func | ) |
local function fast | ( | ) |
disconnect when receiving status
local function header | ( | name | , |
value | ) |
local function json | ( | ) |
decode body to table on response
local function noforce | ( | ) |
By default, requests follow the protocol (HTTP or HTTPS) based on their origin (e.g., HTML5). This setting allows opting out of that behavior and disabling automatic protocol enforcement.
local function param | ( | name | , |
value | ) |
local function success | ( | handler_func | ) |