{"id":18474444,"url":"https://github.com/pgjones/http2_multiplexing_article","last_synced_at":"2026-02-28T19:01:47.681Z","repository":{"id":145404577,"uuid":"166723493","full_name":"pgjones/http2_multiplexing_article","owner":"pgjones","description":null,"archived":false,"fork":false,"pushed_at":"2019-01-21T01:14:21.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-16T19:33:28.844Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":false,"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/pgjones.png","metadata":{"files":{"readme":"README.rst","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":"2019-01-21T00:11:28.000Z","updated_at":"2020-09-01T13:37:25.000Z","dependencies_parsed_at":"2023-06-03T17:15:38.262Z","dependency_job_id":null,"html_url":"https://github.com/pgjones/http2_multiplexing_article","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/pgjones%2Fhttp2_multiplexing_article","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgjones%2Fhttp2_multiplexing_article/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgjones%2Fhttp2_multiplexing_article/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgjones%2Fhttp2_multiplexing_article/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgjones","download_url":"https://codeload.github.com/pgjones/http2_multiplexing_article/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253960055,"owners_count":21990798,"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-11-06T10:29:30.637Z","updated_at":"2026-02-28T19:01:47.672Z","avatar_url":"https://github.com/pgjones.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"HTTP/2 Multiplexing\n===================\n\nThis is the code to accompany an `article\n\u003chttps://medium.com/@pgjones/http-1-is-dead-81b7588d617e\u003e`_.\n\n\nRunning\n-------\n\nAssuming you have at least Python 3.7, firstly to setup:\n\n.. code-block::\n\n    $ python -m venv venv\n    $ source venv/bin/activate\n    $ cd app\n    $ pip install -r requirements.txt\n\nThen you can either run with the HTTP/1.1 (h11) or HTTP/2 (h2)\nconfiguration,\n\n.. code-block::\n\n    $ hypercorn --config=\"python:h11_config.py\" run:app\n    $ hypercorn --config=\"python:h2_config.py\" run:app\n\nPerformance\n-----------\n\nThe purpose of this code is to demonstrate the efficiency of HTTP/2\nmultiplexing by comparing the total time to make all twenty requests\nunder HTTP/1.1 and HTTP/2. HTTP/2 WebSockets are only possible (as of\nearly 2019) in Firefox (chrome requires an additional flag change).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgjones%2Fhttp2_multiplexing_article","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgjones%2Fhttp2_multiplexing_article","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgjones%2Fhttp2_multiplexing_article/lists"}