{"id":19376008,"url":"https://github.com/ftonato/http2-server-push-example","last_synced_at":"2025-06-15T14:05:50.168Z","repository":{"id":78976712,"uuid":"117274381","full_name":"ftonato/http2-server-push-example","owner":"ftonato","description":"HTTP/2 Server Push with Node.js","archived":false,"fork":false,"pushed_at":"2018-01-12T20:02:54.000Z","size":119,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T04:06:16.346Z","etag":null,"topics":["http2","http2-push","http2-server"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ftonato.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-12T18:23:54.000Z","updated_at":"2024-06-14T13:36:09.000Z","dependencies_parsed_at":"2023-05-01T05:55:39.050Z","dependency_job_id":null,"html_url":"https://github.com/ftonato/http2-server-push-example","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/ftonato%2Fhttp2-server-push-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftonato%2Fhttp2-server-push-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftonato%2Fhttp2-server-push-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftonato%2Fhttp2-server-push-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ftonato","download_url":"https://codeload.github.com/ftonato/http2-server-push-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240506984,"owners_count":19812705,"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","http2-push","http2-server"],"created_at":"2024-11-10T08:41:05.612Z","updated_at":"2025-02-24T15:42:36.163Z","avatar_url":"https://github.com/ftonato.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http2-server-push-example\n\nHTTP/2 Server Push with Node.js\n\n## Requirements\n\n- Node.js \u003e= 8.4.0\n\n### Important\nYou need generate your `cert` and `key`\n\n```shell\n$ openssl req -new -newkey rsa:2048 -new -nodes -keyout key.pem -out csr.pem\n\n$ openssl x509 -req -days 365 -in csr.pem -signkey key.pem -out server.crt\n```\n\n## Run\n\n```javascript\n$ npm start\n\n// or\n\n// Node.js \u003e= 8.4.0\n$ node --expose-http2 http2-server.js\n\n// If you are using Node.js \u003e= 9.0.0 you don't need `--expose-http2` flag\n$ node http2-server.js\n```\n\nOpen browser your browser at https://localhost:3000\n\n## Result 🔥\n\n![HTTP/2 Server Push with Node.js](up.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fftonato%2Fhttp2-server-push-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fftonato%2Fhttp2-server-push-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fftonato%2Fhttp2-server-push-example/lists"}