--
-- ~~~ response metadata utils
--
require("src/utils")
-- get response type
function getType (response)
return table.extracthex(response, 1, 8)
end
-- get response status
function getStatus (response)
return table.extracthex(response, 11, 12)
end
-- return
return {
type = getType,
status = getStatus
}