{"id":15348774,"url":"https://github.com/zuston/tiny-server","last_synced_at":"2025-04-03T23:13:03.785Z","repository":{"id":93117879,"uuid":"76656583","full_name":"zuston/tiny-server","owner":"zuston","description":"web server in action , support Factcgi Protocol and Java Framework implemented by Java Nio","archived":false,"fork":false,"pushed_at":"2017-01-07T14:37:02.000Z","size":31,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T10:46:07.350Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/zuston.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":"2016-12-16T13:40:14.000Z","updated_at":"2018-08-04T03:09:26.000Z","dependencies_parsed_at":"2023-03-24T06:03:03.331Z","dependency_job_id":null,"html_url":"https://github.com/zuston/tiny-server","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"f683cc097a2cb68924bd6bc79569f628921b597a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuston%2Ftiny-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuston%2Ftiny-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuston%2Ftiny-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuston%2Ftiny-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zuston","download_url":"https://codeload.github.com/zuston/tiny-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247092393,"owners_count":20882218,"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":[],"created_at":"2024-10-01T11:52:08.142Z","updated_at":"2025-04-03T23:13:03.759Z","avatar_url":"https://github.com/zuston.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tiny-server\nweb server in action\n## Infrastructure\nusing the `nio` multiplexing model is to achieve the non-blocking server.\u003cbr\u003e\u003cbr\u003e\nFor example,one request has arrived the fuckServer,then one thread will accept the request to a `non-blocking queue`,another thread will also listen to the this non-blocking queue and register to the selector and to handle it.\u003cbr\u003e\u003cbr\u003e\nIn fact,the selector is an another non-blocking queue.\n\n## Progess\n### PHP SUPPORT\nthe server can be used as `the php web server` , \u003cbr\u003ejust put your php files into the `PhpApp` floder , \u003cbr\u003ethe route format is limited as `http://localhost/a/b/c/d/e?name=zuston\u0026age=24` , \u003cbr\u003ethe php entrance file is the `index.php` , just like the way when using the nginx.\u003cbr\u003e\n\n### JAVA SERVLET IMPLEMENTATION\ncoding..................\n\u003cbr\u003e\u003cbr\u003e\n# 实践 web server\n## 进度\n### 支持 PHP\u003cbr\u003e\n实现了 `fastcgi` 协议，直接打开 `php-fpm`，就可以支持了\u003cbr\u003e只需要将 `php` 文件放在 `PhpApp` 文件夹下，\u003cbr\u003e路由方式 `http://localhost/a/b/c/d/e?name=zuston\u0026age=24`,\u003cbr\u003e入口文件为 `index.php`\n### JAVA SERVLET 协议实现\u003cbr\u003e\n协议实现有困难，可以自己实现 `http` 方法实现一个 JAVA 框架\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuston%2Ftiny-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzuston%2Ftiny-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuston%2Ftiny-server/lists"}