Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

HTTP/2 dev server

Đang mở
#1,027 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
nuxt, typescript
Lĩnh vực
cli, networking

Hướng nghiên cứu

Bắt đầu bằng việc đọc cuộc thảo luận được tham chiếu unjs/listhen#206 và entry point của development server trong Nuxt CLI. Xác nhận server hiện tại xử lý các request HTTP/1.1 như thế nào và xác định phần validation cần thiết cho việc hỗ trợ trực tiếp HTTP/2, bao gồm các request asset song song và hành vi trong development mode.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Describe the feature

In development mode, large chunks of JS code create a large number of parallel HTTP/1.1 requests.
And browsers like Chromium limit the max-connections-per-server to 6, which will quickly become overwhelming.

In my case, a single http request would wait nearly 6 sec before being sent, with a response within milliseconds.

I tested this idea by using Caddy (which can handle HTTP/2 requests) as a reverse proxy for the development server. It successfully reduces the wait time for individual requests to milliseconds (and all in parallel!).

I believe that if the Nuxt dev server could support HTTP/2 directly, we could achieve even better performance than my workaround. 😉

Additional information
  • Would you be willing to help implement this feature?
    • unjs/listhen#206
  • Could this feature be implemented as a module?
Final checks
Ngôn ngữ chính
TypeScript
Star
399
Fork
119
Merge trung bình
20 giờ 59 phút
Pull request đã merge (30 ngày)
65

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nuxt/cli

Tất cả issue của nuxt/cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.