digitalbazaar / digitalbazaar/http-client
Set keep-alive/make it easier to set keep-alive flag in underlying fetch
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
When this library is used in the browser we should be able to set keep-alive:
See: https://fetch.spec.whatwg.org/#requestinit
When creating a request for Fetch, ky takes options here: https://github.com/sindresorhus/ky/blob/v0.27.0/index.js#L184-L190 and passes them here: https://github.com/sindresorhus/ky/blob/v0.27.0/index.js#L232
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
Start with index.js at the linked sections around lines 184-190 and 232, then compare the request options with the Fetch RequestInit keep-alive field. Confirm how the option should be exposed and verify that a configured keep-alive value reaches the underlying browser fetch call.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100