source-cooperative / source-cooperative/csv-table
Get the file byteLength even if the server does not allow HEAD requests
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
We should use a GET range request with "bytes=0-0"
Alternatively, get it from the first chunk fetch. But note that csv-range does not pass the file byte length to the yielded rows, so we would have to add this metadata.
Contributor guide
No contributing guide indexed for this repository
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
Locate the code that requests file metadata and the first chunk fetch, then inspect how csv-range yields rows without file byte length. Implement a path that obtains the length without relying on HEAD, and confirm that yielded rows expose the required metadata when using a range request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100