{"id":18454967,"url":"https://github.com/youpong/chttpd","last_synced_at":"2025-04-22T16:59:40.226Z","repository":{"id":56379990,"uuid":"288647848","full_name":"youpong/chttpd","owner":"youpong","description":"A single threaded multi process HTTP 1.1 Server implemented in C records apache-like access logs. ","archived":false,"fork":false,"pushed_at":"2022-08-20T13:33:39.000Z","size":1030,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T14:55:07.807Z","etag":null,"topics":["c","web-server"],"latest_commit_sha":null,"homepage":"","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/youpong.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-08-19T06:04:57.000Z","updated_at":"2022-12-03T04:48:16.000Z","dependencies_parsed_at":"2022-08-15T17:40:32.876Z","dependency_job_id":null,"html_url":"https://github.com/youpong/chttpd","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpong%2Fchttpd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpong%2Fchttpd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpong%2Fchttpd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpong%2Fchttpd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youpong","download_url":"https://codeload.github.com/youpong/chttpd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250285029,"owners_count":21405295,"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":["c","web-server"],"created_at":"2024-11-06T08:06:42.172Z","updated_at":"2025-04-22T16:59:40.201Z","avatar_url":"https://github.com/youpong.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![C/C++ CI](https://github.com/youpong/chttpd/workflows/C/C++%20CI/badge.svg)\n\n# Web Server\n\nA multi-process HTTP 1.1 Server implemented in C,\nrecords apache-like access logs.\n\nThis software is released under [MIT license](./LICENSE).\n\n\n## Prerequisite\n\n* clang\n* clangd\n* make\n* bear\n* doxygen\n\n## RUNNING\n\nThe web server runs on Ubuntu-20.04 x86_64.\n\nTo start the server, run the following command:\n\n```bash\n$ ./httpd [-r DOCUMENT_ROOT] [-l ACCESS_LOG] [-p PORT]\n```\n\nTo stop the server, just press Ctrl+C on the command line.\n\noptions:\n\n- `-r DOCUMENT_ROOT` : set document root (default: www)\n\n- `-l ACCESS_LOG` : set access log (default: access.log)\n\n- `-p PORT` : listen port PORT (default: 8088)\n\nTo show the version, run the following command:\n\n```bash\n$ ./httpd -v\n```\n\n## BUILD\n\nTo build, run the following command:\n\n```bash\n$ make -j${nproc} all\n```\n\n## TEST\n\nTo test, run the following command:\n\n```bash\n$ make check\n```\n\n## API Docs\n\nTo generate api docs, run the following command:\n\n```bash\n$ make docs\n```\n\n## Reference\n\n*  https://www.rfc-editor.org/rfc/rfc7230.html Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing\n*  https://httpd.apache.org/docs/2.4/en/logs.html Apache HTTP Server V2.4 Log Files\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoupong%2Fchttpd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoupong%2Fchttpd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoupong%2Fchttpd/lists"}