|
Engine 0.0.6
Game engine in lua
|
HTTP ginga module. More...
Go to the source code of this file.
Functions | |
| local function | http_handler (self) |
| create request | |
| local function | fixed_loop (std, game, application) |
| dequeue request | |
| local function | event_loop (std, game, application, evt) |
| resolve request | |
| local function | install (std, game, application) |
Variables | |
| local | http_util = require('src/lib/util/http') |
| local | lua_util = require('src/lib/util/lua') |
HTTP ginga module.
| feature/support | this module | manoel campos |
|---|---|---|
| Samsung TVs | yes | no |
| Redirect 3xx | yes | no |
| HTTPS protocol | handler error | no |
| Timeout request | yes | no |
| DNS Resolving | yes | no |
| multi-request | yes, event loop | yes, corotines |
Definition in file http_ginga.lua.
| local function event_loop | ( | std | , |
| game | , | ||
| application | , | ||
| evt | ) |
resolve request
| local function fixed_loop | ( | std | , |
| game | , | ||
| application | ) |
dequeue request
| [in] | std | |
| [in] | game | |
| [in,out] | application |
This code may seem confusing, but it was the simplest I thought, analyze the finite state machine to understand better.
| local function http_handler | ( | self | ) |
create request
| local function install | ( | std | , |
| game | , | ||
| application | ) |
Definition at line 73 of file http_ginga.lua.
| local lua_util = require('src/lib/util/lua') |
Definition at line 74 of file http_ginga.lua.