{"id":15108249,"url":"https://github.com/eidheim/simple-web-server","last_synced_at":"2025-09-27T07:30:28.950Z","repository":{"id":18337671,"uuid":"21517184","full_name":"eidheim/Simple-Web-Server","owner":"eidheim","description":"A very simple, fast, multithreaded, platform independent HTTP and HTTPS server and client library implemented using C++11 and Boost.Asio. Created to be an easy way to make REST resources available from C++ applications.","archived":true,"fork":false,"pushed_at":"2018-06-12T09:22:10.000Z","size":6728,"stargazers_count":2610,"open_issues_count":54,"forks_count":751,"subscribers_count":172,"default_branch":"master","last_synced_at":"2024-09-25T22:01:00.994Z","etag":null,"topics":["asio","client","cpp","http","https","library","rest","server","web"],"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/eidheim.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":"2014-07-05T09:47:12.000Z","updated_at":"2024-09-24T05:25:50.000Z","dependencies_parsed_at":"2022-07-12T15:14:51.988Z","dependency_job_id":null,"html_url":"https://github.com/eidheim/Simple-Web-Server","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eidheim%2FSimple-Web-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eidheim%2FSimple-Web-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eidheim%2FSimple-Web-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eidheim%2FSimple-Web-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eidheim","download_url":"https://codeload.github.com/eidheim/Simple-Web-Server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219871967,"owners_count":16554473,"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":["asio","client","cpp","http","https","library","rest","server","web"],"created_at":"2024-09-25T22:00:59.876Z","updated_at":"2025-09-27T07:30:28.659Z","avatar_url":"https://github.com/eidheim.png","language":"C++","readme":"**_This project has moved to https://gitlab.com/eidheim/Simple-Web-Server._**\n\nSimple-Web-Server\n=================\n\nA very simple, fast, multithreaded, platform independent HTTP and HTTPS server and client library implemented using C++11 and Asio (both Boost.Asio and standalone Asio can be used). Created to be an easy way to make REST resources available from C++ applications. \n\nSee https://gitlab.com/eidheim/Simple-WebSocket-Server for an easy way to make WebSocket/WebSocket Secure endpoints in C++. Also, feel free to check out the new C++ IDE supporting C++11/14/17: https://gitlab.com/cppit/jucipp. \n\n### Features\n\n* Asynchronous request handling\n* Thread pool if needed\n* Platform independent\n* HTTPS support\n* HTTP persistent connection (for HTTP/1.1)\n* Client supports chunked transfer encoding\n* Timeouts, if any of Server::timeout_request and Server::timeout_content are \u003e0 (default: Server::timeout_request=5 seconds, and Server::timeout_content=300 seconds)\n* Simple way to add REST resources using regex for path, and anonymous functions\n\n### Usage\n\nSee http_examples.cpp or https_examples.cpp for example usage. \n\nSee particularly the JSON-POST (using Boost.PropertyTree) and the GET /match/[number] examples, which are most relevant.\n\n### Dependencies\n\n* Boost.Asio or standalone Asio\n* Boost is required to compile the examples\n* For HTTPS: OpenSSL libraries \n\n### Compile and run\n\nCompile with a C++11 compliant compiler:\n```sh\nmkdir build\ncd build\ncmake ..\nmake\ncd ..\n```\n\n#### HTTP\n\nRun the server and client examples: `./build/http_examples`\n\nDirect your favorite browser to for instance http://localhost:8080/\n\n#### HTTPS\n\nBefore running the server, an RSA private key (server.key) and an SSL certificate (server.crt) must be created. Follow, for instance, the instructions given here (for a self-signed certificate): http://www.akadia.com/services/ssh_test_certificate.html\n\nRun the server and client examples: `./build/https_examples`\n\nDirect your favorite browser to for instance https://localhost:8080/\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feidheim%2Fsimple-web-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feidheim%2Fsimple-web-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feidheim%2Fsimple-web-server/lists"}