{"id":20996188,"url":"https://github.com/richiejp/barely-http2","last_synced_at":"2025-04-12T05:46:09.712Z","repository":{"id":160436554,"uuid":"634545927","full_name":"richiejp/barely-http2","owner":"richiejp","description":"Barely working HTTP/2 Zig library","archived":false,"fork":false,"pushed_at":"2023-05-05T08:31:53.000Z","size":28,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T05:45:52.650Z","etag":null,"topics":["http2","static-site-server","zig"],"latest_commit_sha":null,"homepage":"https://richiejp.com/barely-http2-zig","language":"Zig","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/richiejp.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":"2023-04-30T13:38:25.000Z","updated_at":"2025-01-23T20:20:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2afe1ce-6e12-47f8-8428-40d74305cd1c","html_url":"https://github.com/richiejp/barely-http2","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/richiejp%2Fbarely-http2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richiejp%2Fbarely-http2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richiejp%2Fbarely-http2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richiejp%2Fbarely-http2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richiejp","download_url":"https://codeload.github.com/richiejp/barely-http2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525154,"owners_count":21118616,"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":["http2","static-site-server","zig"],"created_at":"2024-11-19T07:28:24.136Z","updated_at":"2025-04-12T05:46:09.667Z","avatar_url":"https://github.com/richiejp.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Barely HTTP/2 in Zig\n\nSomething like the minimum Zig implementation of HTTP/2 to serve a\nrequest from Curl. I still need to use TLS and ALPN to get browsers\nworking.\n\nThere are quite some comments in the source code and a blog article:\nhttps://richiejp.com/barely-http2-zig\n\nThis is for a follow on article to:\nhttps://richiejp.com/zig-vs-c-mini-http-server\n\n## Serve files\n\nRun the following\n\n```sh\n$ zig run src/self-serve2.zig -- /static/site\ninfo: Listening on 127.0.0.1:9000; press Ctrl-C to exit...\n\n```\n\nThen in a different terminal\n\n```sh\n$ curl -s -v --http2-prior-knowledge http://localhost:9000\n```\n\n## Just print frame info\n\nA second entry point in the main lib just prints the HTTP/2 frames it\nreceives.\n\n```sh\n$ zig run src/http2.zig\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichiejp%2Fbarely-http2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichiejp%2Fbarely-http2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichiejp%2Fbarely-http2/lists"}