Support for Node.js 8 native http2

Aperta
#122 17 commenti 17 reazioni 1 assegnatario Vedi su GitHub

@bjohansebas ci sta già lavorando.

Dal 17/1/2025.

  • #127 di @maritz — chiusa senza merge
  • #211 di @bjohansebas — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

help wanted

Sorry for opening another issue on this topic (#77, #78), but I'm trying out the new native http2 support in Node.js and compression (1.7.1) fails with:

TypeError: this._implicitHeader is not a function
    at Http2ServerResponse.write (node_modules/compression/index.js:84:14)

As far as I see it, this method isn't part of the public API of http.ServerResponse. Shouldn't compression simply call if (!this.headersSent) this.writeHead(this.statusCode) (in a helper function) instead of depending on undocumented API?

Lingua principale
JavaScript
Stelle
2.8k
Fork
262
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di expressjs/compression

Tutte le issue di expressjs/compression

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.