mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
Unify logging
This commit is contained in:
parent
dd4d542d7e
commit
061ea0e7a3
6 changed files with 70 additions and 42 deletions
|
|
@ -13,16 +13,6 @@ function HttpResponse:__tostring()
|
|||
return stringTemplate:format(self.code, self.body)
|
||||
end
|
||||
|
||||
function HttpResponse.new(body)
|
||||
local response = {
|
||||
body = body,
|
||||
}
|
||||
|
||||
setmetatable(response, HttpResponse)
|
||||
|
||||
return response
|
||||
end
|
||||
|
||||
function HttpResponse.fromRobloxResponse(response)
|
||||
local self = {
|
||||
body = response.Body,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue