{"id":22820159,"url":"https://github.com/kizzycode/ehttpd-rust","last_synced_at":"2025-07-20T17:33:12.080Z","repository":{"id":65551501,"uuid":"594555543","full_name":"KizzyCode/ehttpd-rust","owner":"KizzyCode","description":"A thread-based HTTP server library, which can be used to create custom HTTP server applications","archived":false,"fork":false,"pushed_at":"2024-10-06T15:16:45.000Z","size":149,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-29T14:41:30.872Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/KizzyCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE BSD 2-CLAUSE.md","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,"zenodo":null}},"created_at":"2023-01-28T22:45:38.000Z","updated_at":"2024-10-06T15:16:49.000Z","dependencies_parsed_at":"2023-11-21T21:28:59.761Z","dependency_job_id":"be8dbaf1-f304-4a18-a81a-161976a4e8d6","html_url":"https://github.com/KizzyCode/ehttpd-rust","commit_stats":{"total_commits":38,"total_committers":1,"mean_commits":38.0,"dds":0.0,"last_synced_commit":"b2388b56d984c5d4514ef6eb879d64206f60ec96"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KizzyCode/ehttpd-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KizzyCode%2Fehttpd-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KizzyCode%2Fehttpd-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KizzyCode%2Fehttpd-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KizzyCode%2Fehttpd-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KizzyCode","download_url":"https://codeload.github.com/KizzyCode/ehttpd-rust/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KizzyCode%2Fehttpd-rust/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266165847,"owners_count":23886692,"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":[],"created_at":"2024-12-12T15:16:45.390Z","updated_at":"2025-07-20T17:33:12.065Z","avatar_url":"https://github.com/KizzyCode.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License BSD-2-Clause](https://img.shields.io/badge/License-BSD--2--Clause-blue.svg)](https://opensource.org/licenses/BSD-2-Clause)\n[![License MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![AppVeyor CI](https://ci.appveyor.com/api/projects/status/github/KizzyCode/ehttpd-rust?svg=true)](https://ci.appveyor.com/project/KizzyCode/ehttpd-rust)\n[![docs.rs](https://docs.rs/ehttpd/badge.svg)](https://docs.rs/ehttpd)\n[![crates.io](https://img.shields.io/crates/v/ehttpd.svg)](https://crates.io/crates/ehttpd)\n[![Download numbers](https://img.shields.io/crates/d/ehttpd.svg)](https://crates.io/crates/ehttpd)\n[![dependency status](https://deps.rs/crate/ehttpd/latest/status.svg)](https://deps.rs/crate/ehttpd)\n\n\n# `ehttpd`\nWelcome to `ehttpd` 🎉\n\n`ehttpd` is a HTTP server library, which can be used to create custom HTTP server applications. It also offers an\noptional built-in threadpool-based server for simple applications (feature: `server`, disabled by default).\n\n\n## Threadpool-based server\nThe rationale behind the thread-based approach is that it is much easier to implement than `async/await`, subsequently\nrequires less code, and is – in theory – less error prone.\n\nFurthermore, it also simplifies application development since the developer cannot accidentally stall the entire runtime\nwith a single blocking call; being managed by the OS-scheduler, threads offer much stronger concurrency isolation\nguarantees (which can even be `nice`d or tweaked in most environments if desired).\n\nNote that, starting with version `0.9`, the built-in server is an optional feature and needs to be enabled using the\n`server` feature.\n\n\n### Performance\nWhile the thread-based approach is not the most efficient out there, it's not that bad either. Some `wrk` benchmarks:\n\n#### MacBook Pro (`M1 Pro`, `helloworld`, `v0.7.1`)\n```ignore\n$ wrk -t 64 -c 64 http://localhost:9999/testolope\nRunning 10s test @ http://localhost:9999/testolope\n  64 threads and 64 connections\n  Thread Stats   Avg      Stdev     Max   +/- Stdev\n    Latency     1.00ms  520.00us  27.29ms   95.96%\n    Req/Sec     1.02k   262.37     6.00k    94.81%\n  654074 requests in 10.10s, 32.44MB read\nRequests/sec:  64756.19\nTransfer/sec:      3.21MB\n```\n\n#### Old Linux Machine (`Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz`, `helloworld-nokeepalive`, `v0.7.0`)\n```ignore\n$ wrk -t 64 -c 64 http://localhost:9999/testolope\nRunning 10s test @ http://localhost:9999/testolope\n  64 threads and 64 connections\n  Thread Stats   Avg      Stdev     Max   +/- Stdev\n    Latency     2.22ms    1.00ms  60.93ms   95.30%\n    Req/Sec   435.19     56.94     1.00k    85.05%\n  278046 requests in 10.10s, 18.83MB read\nRequests/sec:  27528.42\nTransfer/sec:      1.86MB\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkizzycode%2Fehttpd-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkizzycode%2Fehttpd-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkizzycode%2Fehttpd-rust/lists"}