{"id":15008105,"url":"https://github.com/oowl/lua-reqwest","last_synced_at":"2025-08-31T09:42:14.188Z","repository":{"id":256370541,"uuid":"852700410","full_name":"oowl/lua-reqwest","owner":"oowl","description":"A simple Lua HTTP client based on Rust reqwest library.","archived":false,"fork":false,"pushed_at":"2025-05-28T11:06:05.000Z","size":25,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-28T11:19:52.505Z","etag":null,"topics":["lua","luajit","mlua","openresty","openresty-module","reqwest","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oowl.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":"2024-09-05T09:10:18.000Z","updated_at":"2025-05-28T11:06:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd4e34d5-c87c-4e08-b586-6b9040311229","html_url":"https://github.com/oowl/lua-reqwest","commit_stats":null,"previous_names":["oowl/lua-reqwest"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/oowl/lua-reqwest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oowl%2Flua-reqwest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oowl%2Flua-reqwest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oowl%2Flua-reqwest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oowl%2Flua-reqwest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oowl","download_url":"https://codeload.github.com/oowl/lua-reqwest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oowl%2Flua-reqwest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272965452,"owners_count":25023071,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["lua","luajit","mlua","openresty","openresty-module","reqwest","rust"],"created_at":"2024-09-24T19:15:09.406Z","updated_at":"2025-08-31T09:42:14.145Z","avatar_url":"https://github.com/oowl.png","language":"Rust","readme":"# lua-reqwest\n\nA simple Lua HTTP client based on [reqwest](https://docs.rs/reqwest/latest/reqwest/).\n\n## Installation\n\n```sh\n# install from local source\nluarocks make reqwest-0.1.0-1.rockspec\n# install from luarocks\nluarocks install lua-reqwest\n```\n\n## APIS\n\n### reqwest.request(url, options)\n\n- `url` (string): The URL to request.\n- `options` (table): The request options.\n  - `method` (string): The request method, default is `GET`.\n  - `headers` (table): The request headers.\n  - `body` (string): The request body.\n  - `version` (number): The HTTP version, default is `1.1`.\n  - `timeout` (number): The request timeout in seconds, default is `30`.\n  - `connect_timeout` (number): The request connect timeout in seconds.\n  - `tls_verify` (boolean): Verify the TLS certificate, default is `true`.\n\n## Example\n\n```lua\nlocal reqwest = require(\"reqwest\")\nlocal cjson = require(\"cjson\")\n\nlocal res, err = reqwest.request(\"https://cloudflare.com/cdn-cgi/trace\", { headers = { [\"User-Agent\"] = \"reqwest\" }, version = 2 })\nprint(\"err: \" .. tostring(err))\nprint(\"res: \" .. cjson.encode(res))\n```\n\n```sh\n╰─$ luajit test.lua                                      \nerr: nil\nres: {\"status\":200,\"body\":\"fl=464f193\\nh=cloudflare.com\\nip=1.1.1.1\\nts=1725552998.6\\nvisit_scheme=https\\nuag=reqwest\\ncolo=SJC\\nsliver=none\\nhttp=http\\/2\\nloc=US\\ntls=TLSv1.3\\nsni=plaintext\\nwarp=off\\ngateway=off\\nrbi=off\\nkex=X25519\\n\",\"headers\":{\"date\":\"Thu, 05 Sep 2024 16:16:38 GMT\",\"cf-ray\":\"8be786613aeacf2e-SJC\",\"content-type\":\"text\\/plain\",\"x-content-type-options\":\"nosniff\",\"server\":\"cloudflare\",\"cache-control\":\"no-cache\",\"x-frame-options\":\"DENY\",\"access-control-allow-origin\":\"*\",\"expires\":\"Thu, 01 Jan 1970 00:00:01 GMT\"}}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foowl%2Flua-reqwest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foowl%2Flua-reqwest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foowl%2Flua-reqwest/lists"}