{"id":15497375,"url":"https://github.com/heapwolf/route","last_synced_at":"2026-03-07T04:04:48.842Z","repository":{"id":20354235,"uuid":"23629251","full_name":"heapwolf/route","owner":"heapwolf","description":"A simple http router in c++ that can be used with nodeuv-http","archived":false,"fork":false,"pushed_at":"2015-03-31T21:09:43.000Z","size":279,"stargazers_count":26,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-18T14:49:17.395Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heapwolf.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}},"created_at":"2014-09-03T17:00:25.000Z","updated_at":"2025-01-03T13:03:12.000Z","dependencies_parsed_at":"2022-09-09T06:01:37.612Z","dependency_job_id":null,"html_url":"https://github.com/heapwolf/route","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/heapwolf/route","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Froute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Froute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Froute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Froute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heapwolf","download_url":"https://codeload.github.com/heapwolf/route/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Froute/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30207402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T03:24:23.086Z","status":"ssl_error","status_checked_at":"2026-03-07T03:23:11.444Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-02T08:33:16.205Z","updated_at":"2026-03-07T04:04:43.832Z","avatar_url":"https://github.com/heapwolf.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SYNOPSIS\nA very simple request router for C++\n\n# EXAMPLE\nThis example uses the [`libuv-http`](https://github.com/hij1nx/libuv-http)\nserver.\n\n```cpp\n#include \"http.h\"\n#include \"route.h\"\n\nint main() {\n\n  Router router;\n\n  Server hs([](auto \u0026req, auto \u0026res) {\n\n    auto match = router.set(req.url);\n\n    if (match.test(\"/books/:id\") {\n\n      res.setStatus(200);\n      res.setHeader(\"Content-Type\", \"text/plain\");\n      res.setHeader(\"Connection\", \"keep-alive\");\n\n      res \u003c\u003c \"You ordered #\" \u003c\u003c match.get(\"id\") \u003c\u003c res.end();\n    }\n\n  });\n\n  hs.listen(\"0.0.0.0\", 8000);\n}\n```\n\n# INSTALL\n```bash\nclib install hij1nx/route\n```\n\n# TEST\n```bash\nmake\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Froute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheapwolf%2Froute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Froute/lists"}