{"id":18565526,"url":"https://github.com/shantanu-verma-salpro/miniweb","last_synced_at":"2025-05-15T18:36:11.302Z","repository":{"id":182795814,"uuid":"667492891","full_name":"shantanu-verma-salpro/miniweb","owner":"shantanu-verma-salpro","description":"HTTP server in java using NIO , Multi reactor","archived":false,"fork":false,"pushed_at":"2023-10-07T11:44:23.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"miniwebframework","last_synced_at":"2024-12-26T12:11:23.389Z","etag":null,"topics":["http-server","httpserver","java","nio","router"],"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/shantanu-verma-salpro.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}},"created_at":"2023-07-17T16:17:15.000Z","updated_at":"2023-10-07T12:14:57.000Z","dependencies_parsed_at":"2023-07-21T12:55:34.588Z","dependency_job_id":null,"html_url":"https://github.com/shantanu-verma-salpro/miniweb","commit_stats":null,"previous_names":["shantanu-verma-salpro/miniweb"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shantanu-verma-salpro%2Fminiweb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shantanu-verma-salpro%2Fminiweb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shantanu-verma-salpro%2Fminiweb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shantanu-verma-salpro%2Fminiweb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shantanu-verma-salpro","download_url":"https://codeload.github.com/shantanu-verma-salpro/miniweb/tar.gz/refs/heads/miniwebframework","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239293947,"owners_count":19615043,"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":["http-server","httpserver","java","nio","router"],"created_at":"2024-11-06T22:19:17.334Z","updated_at":"2025-02-17T13:15:40.341Z","avatar_url":"https://github.com/shantanu-verma-salpro.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# MiniWeb 🌐\n\nMiniWeb is a minimalist web server implemented in Java, utilizing the Non-blocking I/O (NIO) and the Multi-Reactor pattern to efficiently handle network events in a scalable manner.\n\n## Features ✨\n- **Non-blocking I/O (NIO)**: Efficient handling of network events with Java NIO.\n- **Multi-Reactor Pattern**: Enhanced scalability and performance by employing a multi-reactor pattern.\n- **Trie-based Routing**: Utilizes a trie for efficient routing and URL matching.\n\n## Usage 🚀\n\n### 1. Define Your Handlers:\n\n```java\npublic static class BookController {\n    public static HttpResponse handleGetAll(HttpRequest req, PathParameters p) {\n        // Handle GET request for all books\n        String responseString = \"Handling GET all books\";\n        return new HttpResponse.Builder()\n                .statusCode(200)\n                .body(responseString)\n                .build();\n    }\n}\n```\n### 2. Route and Start the Server:\n\n```cpp\npublic class App {\n    public static void main(String[] args) throws IOException {\n        MiniServer x = new MiniServer();\n        x.route(\"/books\", HttpMethod.GET, BookController::handleGetAll);\n        x.start();\n    }\n}\n```\n\n## Installation 🛠️\n\nCompile and run the project using your favorite IDE or via the command line.\n\n## Contributing 🤝\n\nContributions are welcome! Feel free to open a PR or submit issues for any bugs or enhancements.\n\n## License 📄\n\nThis project is open-source and available under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshantanu-verma-salpro%2Fminiweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshantanu-verma-salpro%2Fminiweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshantanu-verma-salpro%2Fminiweb/lists"}