http/2 initiative

オープン
#5,462 コメント 6 件 リアクション 32 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
15/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, node.js
領域
api, backend

調査の方向性

まず、リンクされている issue と pull request、特に #3390 と、そこで参照されている TODO リストを読み、既存の HTTP/2 提案と Express 5.x と PillarJS のどちらを選ぶかについて理解してください。対象範囲は、サーバーの作成、TLS、request/response の互換性、streams、push promises、middleware、tests、documentation、benchmarking に及びます。選択した HTTP/2 の動作について、合意された実装方針とカバレッジが整えば完了です。

索引モデルが issue の本文から書いたものです。

説明

http2

working to gather all related info in this ticket, and will track an effort to bring http/2 into either PillarJS (for routing compatibility only) or Express 5.x.

@dougwilson notes here (in 2015!) https://github.com/expressjs/express/issues/2761#issuecomment-142612001 that PillarJS can be used alongside native module.. so we need to assess if this is going to be something that uses express.js or just PillarJS with HTTP/2

https://github.com/expressjs/express/pull/3730 -- most recent work that picks up on #3390

https://github.com/expressjs/express/issues/2781 notes request for push-promises

https://github.com/expressjs/express/pull/3778#issuecomment-479955675 mentions HTTP2

https://github.com/expressjs/express/pull/2237 mentions HTTP/2 support in 2015 for Express5.x

https://github.com/expressjs/express/pull/3390 is a proposal PR for HTTP/2 via https://github.com/expressjs/express/issues/3388

https://github.com/expressjs/express/pull/3390#issuecomment-408646774 is probably the most comprehensive TODO List i have seen

notably he modifies also:
superagent
supertest
cookies
cookie-session
vhost

also since the start of these efforts we now have chatgpt to help us. after some trial and error i got ChatGPT to provide us a useful TODO list:


Integrate HTTP/2 Core Module:

Replace usage of the HTTP/1 module with Node.js's http2 for server creation, ensuring dual support for HTTP/1 and HTTP/2.
TLS Configuration for HTTP/2:

Implement mandatory TLS setup for HTTP/2, providing configuration options for SSL certificates.
Re-architecture Request/Response Objects:

Adapt Express.js request and response objects to handle HTTP/2's stream-based communication, ensuring API compatibility.
Support for HTTP/2 Streams:

Enable handling of HTTP/2 streams in middleware and routes, allowing for efficient data handling (e.g., file uploads/downloads).
Implement Header Compression:

Utilize HPACK compression for headers in both requests and responses to maximize efficiency as per HTTP/2 specification.
HTTP/2 Server Push:

Develop API methods for HTTP/2 server push, enabling servers to preemptively send resources to the client.
Graceful Fallback to HTTP/1.x:

Ensure the server can gracefully downgrade to HTTP/1.x for clients that do not support HTTP/2.
Optimize for HTTP/2 Features:

Leverage HTTP/2 features like multiplexing and prioritization to optimize request and response management.
Update Middleware for HTTP/2 Compatibility:

Audit and update existing Express middleware to be compatible with HTTP/2, focusing on stream and headers handling.
Comprehensive Test Suite:

Develop a test suite covering HTTP/2 functionality, including stream management, server push, and header compression.
Documentation & Examples:

Provide detailed documentation and examples on setting up and using HTTP/2 with Express.js, including TLS configuration.
Benchmarking & Performance Analysis:

Benchmark HTTP/2 performance against HTTP/1.x, addressing any bottlenecks identified.
主要言語
JavaScript
スター
69.7k
フォーク
25.6k
平均マージ
2日 9時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

expressjs/express のほかの issue

expressjs/express の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。