{"id":13434579,"url":"https://github.com/shenfeng/tiny-web-server","last_synced_at":"2026-03-11T23:03:28.396Z","repository":{"id":1916679,"uuid":"2844358","full_name":"shenfeng/tiny-web-server","owner":"shenfeng","description":"a tiny web server in C, for daily use.","archived":false,"fork":false,"pushed_at":"2020-04-27T16:36:52.000Z","size":120,"stargazers_count":391,"open_issues_count":8,"forks_count":125,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-12-21T08:42:41.008Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","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/shenfeng.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}},"created_at":"2011-11-24T15:41:29.000Z","updated_at":"2025-12-17T22:53:59.000Z","dependencies_parsed_at":"2022-09-03T07:52:47.051Z","dependency_job_id":null,"html_url":"https://github.com/shenfeng/tiny-web-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shenfeng/tiny-web-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shenfeng%2Ftiny-web-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shenfeng%2Ftiny-web-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shenfeng%2Ftiny-web-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shenfeng%2Ftiny-web-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shenfeng","download_url":"https://codeload.github.com/shenfeng/tiny-web-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shenfeng%2Ftiny-web-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30406401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T22:36:59.286Z","status":"ssl_error","status_checked_at":"2026-03-11T22:36:57.544Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-07-31T03:00:18.107Z","updated_at":"2026-03-11T23:03:28.375Z","avatar_url":"https://github.com/shenfeng.png","language":"C","readme":"A tiny web server in C\n======================\n\nI am reading\n[Computer Systems: A Programmer's Perspective](http://csapp.cs.cmu.edu/).\nIt teachers me how to write a tiny web server in C.\n\nI have written another\n[tiny web server](https://github.com/shenfeng/nio-httpserver) in JAVA.\n\nAnd another one [http-kit](https://github.com/http-kit/http-kit), http-kit is full featured, with websocket and async support\n\nAnd few others on my github page.\n\nFeatures\n--------\n\n1. Basic MIME mapping\n2. Very basic directory listing\n3. Low resource usage\n4. [sendfile(2)](http://kernel.org/doc/man-pages/online/pages/man2/sendfile.2.html)\n5. Support Accept-Ranges: bytes (for in browser MP4 playing)\n6. Concurrency by pre-fork\n\nNon-features\n------------\n\n1. No security check\n\nUsage\n-----\n\n`tiny \u003cport\u003e`, opens a server in the current directory, port\ndefault to 9999, just like `python -m SimpleHTTPServer`\n\nI use it as a lightweight File Browser.\n\n\nTODO\n----\n\n1. Write a epoll version\n\n\nLicense\n-------\n\nThe code is free to use under the terms of the MIT license.\n","funding_links":[],"categories":["Xposed","C","Uncategorized"],"sub_categories":["Utility","Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshenfeng%2Ftiny-web-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshenfeng%2Ftiny-web-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshenfeng%2Ftiny-web-server/lists"}