WordPress / WordPress/Requests
Accept file handle option in addition to filename
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 500
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 5
Description
Requests can accept a filename option which is helpful if you're just downloading some data, but if you need to process that data before saving it, it would be helpful to be able to pass the file handle directly instead of just the filename.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the request handling for the existing filename option and trace how downloaded data is written. Define the expected behavior for receiving a file handle directly, then verify that both filename-based and file-handle-based downloads work without changing the existing option's behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100