{"id":23148274,"url":"https://github.com/drkwitht/toyserver","last_synced_at":"2025-08-10T07:14:43.618Z","repository":{"id":169262383,"uuid":"583819606","full_name":"DrkWithT/toyserver","owner":"DrkWithT","description":"A toy HTTP 1.1 server from scratch in Java. Work in progress.","archived":false,"fork":false,"pushed_at":"2023-01-13T05:50:04.000Z","size":65,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T15:45:52.638Z","etag":null,"topics":["http-server","http1-1","java","threading","toy-project"],"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/DrkWithT.png","metadata":{"files":{"readme":"docs/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":"2022-12-31T03:16:33.000Z","updated_at":"2023-01-08T05:56:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9cc5e82-98b7-416c-b300-89f9a22b47e9","html_url":"https://github.com/DrkWithT/toyserver","commit_stats":null,"previous_names":["drkwitht/toyserver"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DrkWithT/toyserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrkWithT%2Ftoyserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrkWithT%2Ftoyserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrkWithT%2Ftoyserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrkWithT%2Ftoyserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DrkWithT","download_url":"https://codeload.github.com/DrkWithT/toyserver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrkWithT%2Ftoyserver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269690395,"owners_count":24459826,"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-10T02:00:08.965Z","response_time":71,"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":["http-server","http1-1","java","threading","toy-project"],"created_at":"2024-12-17T17:09:59.116Z","updated_at":"2025-08-10T07:14:43.601Z","avatar_url":"https://github.com/DrkWithT.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toy (HTTP) Server\n## By: Derek Tan / DrkWithT (GitHub)\n\n### Summary:\nThis Java repo contains files and code for a toy _HTTP 1.1_ server. The server is unintended for production usage and nor has full compliance with HTTP/1.1 for now. Although this will be at best a mediocre implementation, I will continue this project for learning about the HTTP protocol and network programming.\n\n### References:\n - Ensure compliance with other HTTP/1.1 requirements based on this link: [HTTP Made Really Easy](https://www.jmarshall.com/easy/http/#http1.1s1)\n - RFC 9110: _HTTP Semantics_\n\n### Project Roadmap:\n 1. Create basic worker and HTTP request-response classes. (DONE)\n    - Create and integrate a request handler class!\n 2. Support persistent / non-persistent connections. (DONE FOR NOW)\n 3. Rewrite server resource code. (DONE)\n 4. Add HEAD method support. (DONE)\n 5. Support `If-Unmodified-Since` header. Honor this whenever recieved with a `200` or `304` based on the header's vs. resource's updating date.\n 6. Support `100 Continue` responses.\n 7. Support chunked requests.\n\n### Other Todos:\n 1. The `SimpleRequest` class needs an overhaul to support chunked requests. It might be better to encapsulate the `responseStream` within another `ChunkedRequest` class for an easy fix, as single vs chunked responses have some different grammar.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrkwitht%2Ftoyserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrkwitht%2Ftoyserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrkwitht%2Ftoyserver/lists"}