{"id":15688227,"url":"https://github.com/siketyan/h123","last_synced_at":"2025-07-02T08:09:18.297Z","repository":{"id":61133475,"uuid":"548299499","full_name":"siketyan/h123","owner":"siketyan","description":"An experimental HTTP server in Rust that supports HTTP/1.1, HTTP/2, and HTTP/3 over QUIC.","archived":false,"fork":false,"pushed_at":"2024-04-06T01:15:44.000Z","size":114,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T20:46:32.061Z","etag":null,"topics":["http","http-server","http2","http3","hyper","quic","rust-cli"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/siketyan.png","metadata":{"funding":{"github":"siketyan","patreon":"siketyan"},"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}},"created_at":"2022-10-09T09:31:18.000Z","updated_at":"2023-07-14T11:42:04.000Z","dependencies_parsed_at":"2024-03-05T02:49:49.891Z","dependency_job_id":null,"html_url":"https://github.com/siketyan/h123","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/siketyan%2Fh123","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siketyan%2Fh123/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siketyan%2Fh123/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siketyan%2Fh123/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siketyan","download_url":"https://codeload.github.com/siketyan/h123/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252954144,"owners_count":21830895,"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":["http","http-server","http2","http3","hyper","quic","rust-cli"],"created_at":"2024-10-03T17:56:22.426Z","updated_at":"2025-05-07T20:46:38.680Z","avatar_url":"https://github.com/siketyan.png","language":"Rust","funding_links":["https://github.com/sponsors/siketyan","https://patreon.com/siketyan"],"categories":["Rust"],"sub_categories":[],"readme":"# 🚀 H123\nAn experimental HTTP server in Rust that supports HTTP/1.1, HTTP/2, and HTTP/3 over QUIC.\n\n\u003e **Warning**\n\u003e This is an experimental project and not intended for production uses.\n\n## 📦 Getting started\n### 🐳 Using Docker (recommended)\n```shell\ndocker run \\\n    -p 127.0.0.1:443:443/tcp \\\n    -p 127.0.0.1:443:443/udp \\\n    -v $(pwd)/htdocs:/htdocs \\\n    ghcr.io/siketyan/h123:latest\n```\n\nEasy!\n\n### 🏗 Classic style\n1. Clone this repository.\n2. Prepare your TLS server certificate, or use the default self-signed one.\n3. Run the server with the command:\n   ```shell\n   cargo run -- -d ./htdocs -b 127.0.0.1:8443 --cert-chain-pem ./cert.pem --private-key-pem ./privkey.pem\n   ```\n4. Boom! Your server is running.\n\n## 🔌 API\nThis crate also exposes a Server API to serve your service easily in HTTP/1.1, HTTP/2, and HTTP/3.\nTo use the API, implement `Service\u003cRequest\u003cBytes\u003e, Response = Response\u003cBytes\u003e\u003e` and call `Server::new`.\n\n```rust\npub struct Server\u003cS, E\u003e {\n    // ...\n}\n\nimpl\u003cS, E\u003e Server\u003cS, E\u003e {\n    pub fn new\u003cA\u003e(config: \u0026ServerConfig, bind_to: A, service: Arc\u003cS\u003e) -\u003e Self\n    where\n        A: Into\u003cSocketAddr\u003e + Copy;\n}\n```\n\n## 🔬 Internals\nThis server implementation is made from these protocol implementations:\n\n- HTTP/1.1 and HTTP/2\n  - [hyperium/hyper](https://github.com/hyperium/hyper)\n- HTTP/3 over QUIC\n  - [hyperium/h3](https://github.com/hyperium/h3)\n  - [quinn-rs/quinn](https://github.com/quinn-rs/quinn)\n\n## 📄 Licence\nThis repository is licenced under the Apache 2.0 Licence.\nFor details, see [LICENCE.md](./LICENCE.md).\n\n```\nCopyright 2022 Naoki Ikeguchi \u003cme@s6n.jp\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiketyan%2Fh123","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiketyan%2Fh123","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiketyan%2Fh123/lists"}