Use msgpack for API

This commit is contained in:
Micah Hinckley 2025-11-27 10:38:12 -08:00
parent b89cc7f398
commit e5a8798e65
32 changed files with 1848 additions and 90 deletions

View file

@ -1,5 +1,7 @@
local HttpService = game:GetService("HttpService")
local msgpack = require(script.Parent.Parent.msgpack)
local stringTemplate = [[
Http.Response {
code: %d
@ -31,4 +33,8 @@ function Response:json()
return HttpService:JSONDecode(self.body)
end
function Response:msgpack()
return msgpack.decode(self.body)
end
return Response