{"id":26756876,"url":"https://github.com/ilukemagic/rusty-web-server","last_synced_at":"2025-07-19T19:40:26.853Z","repository":{"id":284757530,"uuid":"955968881","full_name":"ilukemagic/rusty-web-server","owner":"ilukemagic","description":"A simple HTTP web server implementation in Rust for learning purposes.","archived":false,"fork":false,"pushed_at":"2025-03-27T13:52:23.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T14:48:04.638Z","etag":null,"topics":["learning","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/ilukemagic.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":"2025-03-27T13:44:07.000Z","updated_at":"2025-03-27T13:52:55.000Z","dependencies_parsed_at":"2025-03-27T14:48:07.020Z","dependency_job_id":"4f68da6a-7398-488e-91b7-eca5c7054810","html_url":"https://github.com/ilukemagic/rusty-web-server","commit_stats":null,"previous_names":["ilukemagic/rusty-web-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilukemagic%2Frusty-web-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilukemagic%2Frusty-web-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilukemagic%2Frusty-web-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilukemagic%2Frusty-web-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ilukemagic","download_url":"https://codeload.github.com/ilukemagic/rusty-web-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246049642,"owners_count":20715512,"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":["learning","rust"],"created_at":"2025-03-28T15:21:39.967Z","updated_at":"2025-03-28T15:21:41.470Z","avatar_url":"https://github.com/ilukemagic.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rusty Web Server\n\nA simple HTTP web server implementation in Rust for learning purposes. This project demonstrates basic web server functionality using Rust's standard library.\n\n## Features\n\n- Basic HTTP/1.1 server implementation\n- Handles GET requests\n- Serves static HTML files\n- Supports 200 OK and 404 Not Found responses\n- Single-threaded request handling\n\n## Prerequisites\n\n- Rust (latest stable version)\n- Cargo (Rust's package manager)\n\n## Getting Started\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/yourusername/rusty-web-server.git\ncd rusty-web-server\n```\n\n2. Run the server:\n\n```bash\ncargo run\n```\n\nThe server will start listening on `127.0.0.1:7878`\n\n## Project Structure\n\n- `src/main.rs` - Main server implementation\n- `index.html` - Home page\n- `404.html` - Not found error page\n\n## How It Works\n\nThe server:\n\n1. Listens for incoming TCP connections on port 7878\n2. Reads and parses HTTP requests\n3. Serves the appropriate HTML file based on the request path\n4. Returns HTTP responses with proper headers\n\n## Learning Points\n\nThis project demonstrates several Rust concepts:\n\n- TCP networking with `TcpListener` and `TcpStream`\n- File I/O operations\n- String manipulation\n- Error handling\n- Basic HTTP protocol implementation\n\n## Future Improvements\n\n- [ ] Multi-threading support\n- [ ] Configuration file support\n- [ ] More HTTP methods (POST, PUT, DELETE)\n- [ ] Custom routing\n- [ ] Static file serving\n- [ ] Request logging\n\n## License\n\nThis project is open source and available under the MIT License.\n\n## Contributing\n\nFeel free to open issues and submit pull requests to improve the project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filukemagic%2Frusty-web-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filukemagic%2Frusty-web-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filukemagic%2Frusty-web-server/lists"}