6 .add_custom_headers(self.header_list, self.header_dict)
7 .add_body_content(self.body_content)
10 local handle = io and io.popen and io.popen(
command)
13 local
stdout = handle:read("*a")
14 local
ok, stderr = handle:close()
15 local index =
stdout:find("[^\n]*$") or 1
16 local status = tonumber(
stdout:sub(index))
21 self.
std.
http.
ok = 200 <= status and status < 300
local function stdout(self, format)
local function require(std, game, application)
local function http_handler(self)
local function body(self, content)
local function error(self, handler_func)
local function failed(self, handler_func)
local function http(std, game)