{"id":28000672,"url":"https://github.com/sysprog21/sehttpd","last_synced_at":"2025-05-08T23:54:09.638Z","repository":{"id":37105121,"uuid":"253265147","full_name":"sysprog21/sehttpd","owner":"sysprog21","description":"A small and efficient web server with 1K lines of C code","archived":false,"fork":false,"pushed_at":"2022-11-10T16:45:13.000Z","size":47,"stargazers_count":87,"open_issues_count":1,"forks_count":75,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-08T23:54:04.464Z","etag":null,"topics":["asynchronous-programming","ebpf","epoll","http","linux","nonblocking","web-server"],"latest_commit_sha":null,"homepage":null,"language":"C","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/sysprog21.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}},"created_at":"2020-04-05T15:18:46.000Z","updated_at":"2025-03-13T14:35:45.000Z","dependencies_parsed_at":"2023-01-20T17:16:26.872Z","dependency_job_id":null,"html_url":"https://github.com/sysprog21/sehttpd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysprog21%2Fsehttpd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysprog21%2Fsehttpd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysprog21%2Fsehttpd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysprog21%2Fsehttpd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sysprog21","download_url":"https://codeload.github.com/sysprog21/sehttpd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253166484,"owners_count":21864471,"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":["asynchronous-programming","ebpf","epoll","http","linux","nonblocking","web-server"],"created_at":"2025-05-08T23:54:09.081Z","updated_at":"2025-05-08T23:54:09.622Z","avatar_url":"https://github.com/sysprog21.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# seHTTPd\n\n`seHTTPd` implements a small and efficient web server with 1K lines of C code.\nI/O multiplexing is achieved using [epoll](http://man7.org/linux/man-pages/man7/epoll.7.html).\n\n## Features\n\n* Single-threaded, non-blocking I/O based on event-driven model\n* HTTP persistent connection (HTTP Keep-Alive)\n* A timer for executing the handler after having waited the specified time\n\n## High-level Design\n\n```text\n+----------------------------------------------+\n|                                              |\n|  +-----------+   wait   +-----------------+  |  copy   +---------+\n|  |           +----------\u003e                 +------------\u003e         |\n|  | IO Device |    1     | Kernel's buffer |  |   2     | Process |\n|  |           \u003c----------+                 \u003c------------+         |\n|  +-----------+          +-----------------+  |         +---------+\n|                                              |\n+----------------------------------------------+\n```\n\n## Build from Source\n\nAt the moment, `seHTTPd` supports Linux based systems with epoll system call.\nBuilding `seHTTPd` is straightforward.\n```shell\n$ make\n```\n\n### Default server \n```shell\n./sehttpd\n```\n\n### Specify the port\n```shell\n./sehttpd -p 8082 \n```\n\nSpecify the port number with `-p` flag, by default the server accepts connections on port 8081.\n\n### Specify the web root\n```shell\n./sehttpd -w ./www\n```\n\nSpecify the web root with `-w` flag, by default the web root is \"./www\".\n\n## License\n`seHTTPd` is released under the MIT License. Use of this source code is governed\nby a MIT License that can be found in the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysprog21%2Fsehttpd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsysprog21%2Fsehttpd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysprog21%2Fsehttpd/lists"}