{"id":19475387,"url":"https://github.com/erdian718/lmodhttpclient","last_synced_at":"2025-10-30T23:17:55.224Z","repository":{"id":57502810,"uuid":"190855161","full_name":"erdian718/lmodhttpclient","owner":"erdian718","description":"http.Client bindings for Lua.","archived":false,"fork":false,"pushed_at":"2023-09-20T16:03:55.000Z","size":11,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-08T06:31:52.583Z","etag":null,"topics":["go","http","http-client","lua"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erdian718.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-06-08T06:45:29.000Z","updated_at":"2019-06-09T06:10:18.000Z","dependencies_parsed_at":"2024-06-20T06:54:00.092Z","dependency_job_id":null,"html_url":"https://github.com/erdian718/lmodhttpclient","commit_stats":null,"previous_names":["ofunc/lmodhttpclient"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdian718%2Flmodhttpclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdian718%2Flmodhttpclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdian718%2Flmodhttpclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdian718%2Flmodhttpclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erdian718","download_url":"https://codeload.github.com/erdian718/lmodhttpclient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240699017,"owners_count":19843508,"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":["go","http","http-client","lua"],"created_at":"2024-11-10T19:32:20.985Z","updated_at":"2025-10-30T23:17:50.177Z","avatar_url":"https://github.com/erdian718.png","language":"Go","readme":"# lmodmsgpack\n\n`http.Client` bindings for [Lua](https://github.com/ofunc/lua).\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"ofunc/lmodhttpclient\"\n\t\"ofunc/lua/util\"\n)\n\nfunc main() {\n\tl := util.NewState()\n\tl.Preload(\"http/client\", lmodhttpclient.Open)\n\tutil.Run(l, \"main.lua\")\n}\n```\n\n```lua\nlocal io = require 'io'\nlocal client = require 'http/client'\n\nlocal resp = client.get('https://github.com/ofunc/lmodhttpclient')\nio.copy(resp, io.stdout)\nresp:close()\n```\n\n## Dependencies\n\n* [ofunc/lua](https://github.com/ofunc/lua)\n* [publicsuffix](https://golang.org/x/net/publicsuffix)\n\n## Documentation\n\n### client.head(url)\n\nIssues a `HEAD` to the specified `url`.\n\n### client.get(url)\n\nIssues a `GET` to the specified `url`.\n\n### client.post(url, x[, y])\n\nIssues a `POST` to the specified `url`.\n`x` is a `Content-Type` and `y` is a `io.reader`.\nOr `x` is a form data.\n\n### client.fetch(options)\n\nSends an HTTP request and returns an HTTP response.\n```\noptions.url: The path name to send the request to.\noptions.method: The HTTP method to use.\noptions.body: Body that you want to add to your request.\noptions.header: Header to append to the request before sending it.\n```\n\n### client.encode(data)\n\nEncodes the `data` into `URL encoded` form.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdian718%2Flmodhttpclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferdian718%2Flmodhttpclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdian718%2Flmodhttpclient/lists"}