Engine 0.0.4
Game engine in lua
Loading...
Searching...
No Matches
http_ginga.lua File Reference

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')
 

Detailed Description

HTTP ginga module.

Compare
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
Note
Samsung Tvs have connections blocked when host is not cached in DNS
Finite State Machine
Contexts

Definition in file http_ginga.lua.

Function Documentation

◆ event_loop()

local function event_loop ( std ,
game ,
application ,
evt  )

resolve request

◆ fixed_loop()

local function fixed_loop ( std ,
game ,
application  )

dequeue request

Parameters
[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.

◆ http_handler()

local function http_handler ( self )

create request

◆ install()

local function install ( std ,
game ,
application  )

Variable Documentation

◆ http_util

local http_util = require('src/lib/util/http')

Definition at line 73 of file http_ginga.lua.

◆ lua_util

local lua_util = require('src/lib/util/lua')

Definition at line 74 of file http_ginga.lua.