Upgrade puppeteer for HTTPResponse.stream() and measure it on non-HTML navigations

Aperta
#1,022 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, node.js
Ambito
backend, testing

Direzione di ricerca

The issue names the Puppeteer dependencies in packages/browserless, agent, and ai, and asks for a test against a local server. First check the current package manifests and test setup, then verify which Puppeteer release provides HTTPResponse.stream(). Measure received versus served bytes and whether streaming rejects for each listed navigation type; release browserless after recording the results.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

claude --dangerously-skip-permissions --resume f585c3fe-624a-4f4c-9b28-edf7962e7046

—

Blocked on upstream: https://github.com/puppeteer/puppeteer/issues/7863

Puppeteer is adding HTTPResponse.stream(): Promise<ReadableStream<Uint8Array>>, built on the experimental CDP method Network.streamResourceContent (approved by OrKoN in the issue thread). It returns the data buffered so far and then streams the rest until loading finishes. It must be called from the response event, before loading finishes; after that it rejects. It is CDP only (BiDi throws UnsupportedOperation).

Tasks

  • Bump puppeteer (currently "25" in packages/browserless, agent, ai) to the first release that ships response.stream().

  • Measure, in a test against a local server, whether stream() returns the body when the main-frame navigation is:

    • application/pdf served from a URL without .pdf (PDF viewer case)
    • content-disposition: attachment (download case, goto ends in net::ERR_ABORTED)
    • an image or media type
    • a normal text/html document (baseline)

    Record per case: body bytes received vs. bytes served, and whether stream() rejected. This result decides whether microlinkhq/html-get can use it (see the linked html-get issue).

  • Release browserless so html-get and the API can pick it up.

Out of scope

page.pdf() / page.screenshot() output streaming. response.stream() covers network response bodies only. PDF output streaming is already available through page.createPDFStream(), and Page.captureScreenshot has no stream mode.

Lingua principale
JavaScript
Stelle
1.8k
Fork
90
Merge medio
5h 42m
PR unite (30g)
40

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 microlinkhq/browserless

Tutte le issue di microlinkhq/browserless

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.