{"id":18933479,"url":"https://github.com/zjhellofss/happyhttp","last_synced_at":"2026-03-19T08:30:15.485Z","repository":{"id":88006091,"uuid":"233193497","full_name":"zjhellofss/happyHttp","owner":"zjhellofss","description":"一个基于libevent，处理静态页面的httpserver的实现,支持对静态页面和多种格式文件的访问,文件浏览器,自定义的错误页面,支持CGI模式,支持以定时器的方式对空置的连接进行回收","archived":false,"fork":false,"pushed_at":"2020-01-26T05:59:14.000Z","size":261,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T20:43:01.911Z","etag":null,"topics":["cpp11","httpserver","libevent"],"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/zjhellofss.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":"2020-01-11T07:27:33.000Z","updated_at":"2023-05-06T03:16:39.000Z","dependencies_parsed_at":"2023-05-22T08:45:34.013Z","dependency_job_id":null,"html_url":"https://github.com/zjhellofss/happyHttp","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/zjhellofss%2FhappyHttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjhellofss%2FhappyHttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjhellofss%2FhappyHttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjhellofss%2FhappyHttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zjhellofss","download_url":"https://codeload.github.com/zjhellofss/happyHttp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239933067,"owners_count":19720728,"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":["cpp11","httpserver","libevent"],"created_at":"2024-11-08T11:54:41.956Z","updated_at":"2026-03-19T08:30:13.424Z","avatar_url":"https://github.com/zjhellofss.png","language":"C++","readme":"# 基于libevent的HttpServer\n\n\n\n## 简介\n项目主要采用Libevent对client的请求进行处理、boost记录日志和切分请求头。\n## 功能\n\n1. 支持对静态页面和多种格式文件的访问\n2. 文件浏览器\n3. 自定义的错误页面\n4. 支持CGI模式\n5. 支持以定时器的方式对空置的连接进行回收\n\n\n## 编译以及使用\n\n## 编译流程\n```shell\n    mkdir build\n    cmake ..\n    make \n    sudo make  install\n```\n\n## 样例配置文件\n在安装完成后在`properties.json`中修改自己需要的配置\n```JSON\n{\n  \"port\": 9999,\n  \"index\": \"hello.html\",\n  \"log_path\": \"/Users/fss/serverlog/\",\n  \"alternate_port\": 9998,\n  \"static_page\": \"/www/http/pages/static/\",\n  \"work_path\": \"/Users/fss/CLionProjects/happyHttp\"\n}\n\n\n\n```\n\n\n\n\n## 启动服务器\n终端使用命令`nohup httpServer \u0026`启动服务器\n\n## 致谢\n感谢我的好朋友[胡昊](https://github.com/1120023921)为这个项目的开发出谋划策，提供各种各样的帮助。","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzjhellofss%2Fhappyhttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzjhellofss%2Fhappyhttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzjhellofss%2Fhappyhttp/lists"}