iteration
This commit is contained in:
		@ -1,9 +1,18 @@
 | 
				
			|||||||
-- Desc: CCTTP Networking Library
 | 
					-- Desc: CCTTP Networking Library
 | 
				
			||||||
-- Auth:  Layla Manley
 | 
					-- Auth:  Layla Manley
 | 
				
			||||||
-- Link: https://gitea.layla.gg/layla/computercraft
 | 
					-- Link: https://gitea.layla.gg/layla/computercraft
 | 
				
			||||||
local interface Response
 | 
					
 | 
				
			||||||
    status: number
 | 
					Response = {
 | 
				
			||||||
    body: string
 | 
					    status = 0,
 | 
				
			||||||
 | 
					    body = "",
 | 
				
			||||||
 | 
					    headers = {}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function Response:new(o)
 | 
				
			||||||
 | 
					    o = o or {}
 | 
				
			||||||
 | 
					    setmetatable(o, self)
 | 
				
			||||||
 | 
					    self.__index = self
 | 
				
			||||||
 | 
					    return o
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function get(url: string): Response:
 | 
					function get(url: string): Response:
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user