{"id":24064536,"url":"https://github.com/sourasishbasu/http-web-server-python","last_synced_at":"2026-06-10T04:31:38.613Z","repository":{"id":244466904,"uuid":"815325879","full_name":"SourasishBasu/http-web-server-python","owner":"SourasishBasu","description":"HTTP Web server in python","archived":false,"fork":false,"pushed_at":"2024-08-31T18:05:20.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T18:14:43.486Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SourasishBasu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-06-14T21:36:22.000Z","updated_at":"2024-08-31T18:05:54.000Z","dependencies_parsed_at":"2024-06-14T22:49:18.911Z","dependency_job_id":"8543bec3-40f5-4d2a-8aa0-29d1501e2e10","html_url":"https://github.com/SourasishBasu/http-web-server-python","commit_stats":null,"previous_names":["sourasishbasu/http-web-server-python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SourasishBasu/http-web-server-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SourasishBasu%2Fhttp-web-server-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SourasishBasu%2Fhttp-web-server-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SourasishBasu%2Fhttp-web-server-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SourasishBasu%2Fhttp-web-server-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SourasishBasu","download_url":"https://codeload.github.com/SourasishBasu/http-web-server-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SourasishBasu%2Fhttp-web-server-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34137570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":[],"created_at":"2025-01-09T10:38:15.533Z","updated_at":"2026-06-10T04:31:38.595Z","avatar_url":"https://github.com/SourasishBasu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP Web Server\n\u003e Simple web server for handling concurrent connections and serving requests written in Python with only standard libraries.\n\n### Usage\n\n```bash\n./run.sh\n```\nStart the web server listening for requests on port `4221`.\n\n## Sending requests\n\n- ### `GET`\n\n  ```curl\n  $ curl -v http://localhost:4221/echo/abc\n  ```\n  \n  #### Response\n  ```bash\n  HTTP/1.1 200 OK\\r\\nContent-Type: text/plain\\r\\nContent-Length: 3\\r\\n\\r\\nabc\n  ```\n\n- ### `GET` files\n\n  ```bash\n  $ curl -i http://localhost:4221/files/foo\n  ```\n  \n  #### Success Response\n  ```bash\n  HTTP/1.1 200 OK\\r\\nContent-Type: application/octet-stream\\r\\nContent-Length: 14\\r\\n\\r\\nHello, World!\n  ```\n  \n  #### Failed Response\n  ```bash\n  HTTP/1.1 404 Not Found\\r\\n\\r\\n\n  ```\n\n- ### `POST`\n\n  ```bash\n  $ curl -v --data \"12345\" -H \"Content-Type: application/octet-stream\" http://localhost:4221/files/file_123\n  ```\n  \n  #### Response\n  ```bash\n  HTTP/1.1 201 Created\\r\\n\\r\\n\n  ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourasishbasu%2Fhttp-web-server-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourasishbasu%2Fhttp-web-server-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourasishbasu%2Fhttp-web-server-python/lists"}