microsoft / microsoft/playwright

[Feature] `Response.bodyAsStream()`

Open
#17,199 4 comments 64 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P3-collecting-feedback
Dominant language
TypeScript
Stars
96.3k
Forks
6.5k
Avg merge
1d 6h
Merged PRs (30d)
180

Description

As suggested in https://github.com/microsoft/playwright/issues/7466: Opening a new issue to enquire about a `Response.bodyAsStream()` feature.

It would be convenient to be able to access the body of a response before the request is finished.
For example, audio and video streams may not have a predetermined end: this feature would make it possible to capture an excerpt.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the discussion in issue #7466 and the existing Response API entry point named in this request, `Response.bodyAsStream()`. Define how response data should become available before request completion and how an excerpt can be captured from an open-ended audio or video stream; completion should include the necessary API behavior and coverage across Playwright's supported browsers.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.