You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
575 B
Lua

local setmetatable = setmetatable
local Request = {}
function Request:new()
local body = {} -- body params
local params = {}
local instance = {
method = "",
query = {},
params = {},
body = body,
path = "",
url = "",
uri = "",
req_args = {},
baseUrl = "",
found = false
}
setmetatable(instance, { __index = self })
return instance
end
function Request:is_found()
return self.found
end
function Request:set_found(found)
self.found = found
end
return Request