{"id":23404771,"url":"https://github.com/fulminazzo/railway","last_synced_at":"2026-05-06T10:40:00.014Z","repository":{"id":269227954,"uuid":"906785748","full_name":"fulminazzo/Railway","owner":"fulminazzo","description":"A simple HTTP server that supports dynamic content using Groovy scripts.","archived":false,"fork":false,"pushed_at":"2024-12-23T12:19:31.000Z","size":181,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T22:47:46.162Z","etag":null,"topics":["github-actions","gradle","groovy","http"],"latest_commit_sha":null,"homepage":"","language":"Groovy","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/fulminazzo.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":"2024-12-21T22:34:25.000Z","updated_at":"2024-12-23T12:18:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c824773-3667-4349-937e-9a4d7070827b","html_url":"https://github.com/fulminazzo/Railway","commit_stats":null,"previous_names":["fulminazzo/railway"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fulminazzo/Railway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fulminazzo%2FRailway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fulminazzo%2FRailway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fulminazzo%2FRailway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fulminazzo%2FRailway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fulminazzo","download_url":"https://codeload.github.com/fulminazzo/Railway/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fulminazzo%2FRailway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278663357,"owners_count":26024389,"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-10-06T02:00:05.630Z","response_time":65,"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":["github-actions","gradle","groovy","http"],"created_at":"2024-12-22T13:15:39.611Z","updated_at":"2025-10-06T18:59:52.906Z","avatar_url":"https://github.com/fulminazzo.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Railway** is a simple **HTTP Groovy server** that supports **dynamic page** loading. \nIt does so by utilizing **Groovy scripts** in the root directory.\n\nAssume the path `/greet/\u003cname\u003e`, where the name parameter will be substituted with one given by the user.\n\nThe correspondent **Groovy script** should be located at `\u003croot_directory\u003e/greet.groovy` with contents:\n\n```groovy\nimport com.sun.net.httpserver.HttpExchange\nimport it.fulminazzo.railway.ContentHandler\nimport it.fulminazzo.railway.HTTPCode\n\nstatic ContentHandler.HTTPResponse handle(HttpExchange httpExchange) {\n    def path = httpExchange.requestURI.path\n    def matcher = path =~ /(\\/greet\\/)([A-Za-z]+)/\n    if (matcher.find()) return new ContentHandler.HTTPResponse(HTTPCode.OK, matcher.group(1),\n                \"Hello, ${matcher.group(2)}!\")\n    else return new ContentHandler.HTTPResponse(HTTPCode.BAD_REQUEST, path,\n            \"No name provided!\"\n    )\n}\n```\n\n**NOTE**: this structure is **mandatory**. \nThe file can be manipulated as the developer pleases, \nbut a method named **handle** with **parameter `HttpExchange`** and **return type `HTTPResponse`** \nwill **always** be required.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffulminazzo%2Frailway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffulminazzo%2Frailway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffulminazzo%2Frailway/lists"}