{"id":17011785,"url":"https://github.com/flaribbit/lua-www","last_synced_at":"2025-03-22T13:23:38.875Z","repository":{"id":137699704,"uuid":"341943963","full_name":"flaribbit/lua-www","owner":"flaribbit","description":"Inspired by justjavac/proxy-www","archived":false,"fork":false,"pushed_at":"2021-02-24T15:26:04.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T12:49:33.536Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flaribbit.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-24T15:25:48.000Z","updated_at":"2021-02-26T09:18:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c132e30-6292-4d50-902d-2710e0c93870","html_url":"https://github.com/flaribbit/lua-www","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaribbit%2Flua-www","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaribbit%2Flua-www/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaribbit%2Flua-www/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaribbit%2Flua-www/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flaribbit","download_url":"https://codeload.github.com/flaribbit/lua-www/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244960716,"owners_count":20538868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T06:08:00.329Z","updated_at":"2025-03-22T13:23:38.860Z","avatar_url":"https://github.com/flaribbit.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lua-www\r\n\r\nInspired by [justjavac/proxy-www](https://github.com/justjavac/proxy-www)\r\n\r\n```lua\r\nlocal http = require \"socket.http\"\r\n\r\nlocal www = {\r\n    url = \"http://www\",\r\n    __index = function(self, s)\r\n        self.url = self.url..\".\"..s\r\n        return self\r\n    end,\r\n    get = function(self, fun)\r\n        local b, s, h = http.request(self.url)\r\n        fun({body=b, status=s, header=h})\r\n        self.url = \"http://www\"\r\n    end\r\n}\r\nsetmetatable(www, www)\r\n\r\nwww.baidu.com:get(function (res)\r\n    print(res.status, #res.body)\r\nend)\r\n```\r\n\r\nJust for fun😉\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaribbit%2Flua-www","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflaribbit%2Flua-www","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaribbit%2Flua-www/lists"}