digitalbazaar / digitalbazaar/http-client

Set keep-alive/make it easier to set keep-alive flag in underlying fetch

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.