{"id":19890464,"url":"https://github.com/wususu/toy-http-server","last_synced_at":"2026-02-24T03:31:50.394Z","repository":{"id":127111424,"uuid":"124640523","full_name":"wususu/toy-http-server","owner":"wususu","description":"A toy http server power by java | 简单的web服务器 ","archived":false,"fork":false,"pushed_at":"2018-03-13T01:22:52.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T03:32:11.191Z","etag":null,"topics":["http-server","servlet-container","web"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/wususu.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":"2018-03-10T09:21:26.000Z","updated_at":"2018-03-13T01:21:36.000Z","dependencies_parsed_at":"2023-08-15T02:04:50.671Z","dependency_job_id":null,"html_url":"https://github.com/wususu/toy-http-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wususu/toy-http-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wususu%2Ftoy-http-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wususu%2Ftoy-http-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wususu%2Ftoy-http-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wususu%2Ftoy-http-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wususu","download_url":"https://codeload.github.com/wususu/toy-http-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wususu%2Ftoy-http-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29770767,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T03:15:54.600Z","status":"ssl_error","status_checked_at":"2026-02-24T03:15:54.143Z","response_time":75,"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":["http-server","servlet-container","web"],"created_at":"2024-11-12T18:14:35.029Z","updated_at":"2026-02-24T03:31:50.365Z","avatar_url":"https://github.com/wususu.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# toy-http-server\nA toy http server power by java | 简单的web服务器 | Java NIO\n\nUSE:\n\n### 1. 运行BootStrap.java\n\n打开浏览器输入 http://127.0.0.1:8888/{file_name}\n\n{file_name}为请求的文件名,程序将会解析webroot目录下相应文件并输出到浏览器\n\n例如: 输入 http://127.0.0.1:8888/index.html 就能看到我的github主页啦\n\n### 2. Servlet解析及注解支持:\n\n在http.servlet下创建servlet并使用@HashService注解(支持深度递归搜索servlet),\n\n地址加上servlet对应uri即可得到相应输出\n\n例如: 输入 http://127.0.0.1:8888/index 就能看到该servlet名\n\n### 3. POST/GET参数和Cookie支持:\n\n在请求Servlet地址时加上GET/POST参数,页面会显示发送参数的map\n\n例如: 输入 http://127.0.0.1:8888/index?name=hasher 就能看到该{\"name\"=\"hasher\"}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwususu%2Ftoy-http-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwususu%2Ftoy-http-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwususu%2Ftoy-http-server/lists"}