{"id":20668639,"url":"https://github.com/clxrityy/http-server","last_synced_at":"2025-06-22T04:38:41.154Z","repository":{"id":261680716,"uuid":"883946661","full_name":"clxrityy/http-server","owner":"clxrityy","description":"A simple Java HTTP server","archived":false,"fork":false,"pushed_at":"2025-02-17T15:26:59.000Z","size":18846,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T07:32:12.817Z","etag":null,"topics":["configuration","http","http-server","java","json"],"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/clxrityy.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,"zenodo":null}},"created_at":"2024-11-05T21:24:52.000Z","updated_at":"2025-02-17T15:27:03.000Z","dependencies_parsed_at":"2024-11-07T21:31:41.732Z","dependency_job_id":"13c1e4df-a13e-4664-88af-163e1cd93a71","html_url":"https://github.com/clxrityy/http-server","commit_stats":null,"previous_names":["clxrityy/http-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/clxrityy/http-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clxrityy%2Fhttp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clxrityy%2Fhttp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clxrityy%2Fhttp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clxrityy%2Fhttp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clxrityy","download_url":"https://codeload.github.com/clxrityy/http-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clxrityy%2Fhttp-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261237812,"owners_count":23128843,"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":["configuration","http","http-server","java","json"],"created_at":"2024-11-16T20:10:23.234Z","updated_at":"2025-06-22T04:38:36.136Z","avatar_url":"https://github.com/clxrityy.png","language":"Java","readme":"# HTTP Server\n\nA simple Java HTTP server\n\n## Usage\n\nThe files in [`root/`](/root/) will be served by the server.\n\n- Simply run the `http-server.jar` file\n    ```zsh\n    java -jar http-server.jar\n    ```\n    - The server will start on port 5006 by default ([`http://localhost:5006`](http://localhost:5006))\n    - The server will serve files from the `root` directory by default\n    - The server will use the [`config.json`](/src/main/resources/config.json) file as the config by default\n\nTest the `api/echo` route:\n```zsh\ncurl -v \\        \n  -H \"Content-Type: application/json\" \\\n  -d '{\"message\":\"hello\"}' \\\n  http://localhost:5006/api/echo\n```\n\nTest for other file extensions:\n```zsh\ncurl http://localhost:5006/style.css\n```\n\n\u003e See all supported file extensions in the [`MimeTypes`](src/main/java/com/mjanglin/httpserver/config/MimeTypes.java) class.\n\n## Features\n\n- [x] JSON configuration management\n- [x] HTTP server connection socket\n- [x] HTTP server-to-client listener thread\n- [x] Support for file types\n    - [x] Support for text files\n    - [x] Support for application\n    - [x] Support for audio files\n    - [x] Support for image files\n    - [x] Support for video files\n    - [x] Support for font files\n    - [x] ...\n- [x] Support for routes\n- [x] Support for different HTTP methods\n    - [x] GET\n    - [x] POST\n    - [ ] PUT\n    - [ ] DELETE\n    - [ ] PATCH\n- [ ] Handle requests\n- [x] Passing tests\n- [x] Parsing headers of requests\n- [ ] Parsing body of requests\n- [ ] Parsing query parameters of requests\n- [x] Thread pool support","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclxrityy%2Fhttp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclxrityy%2Fhttp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclxrityy%2Fhttp-server/lists"}