Ability to abort requests
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 581
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
welp, I'm in a place where I need to abort requests sometimes.
- node: [`request.destroy()`](https://nodejs.org/api/http.html#requestdestroyerror)
- XHR: [`request.abort()`](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/abort)
- fetch: you [pass in a `signal`](https://developer.mozilla.org/en-US/docs/Web/API/fetch#parameters) that's a `new AbortController()` that you can [`abort`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) later or whatever
it would be cool if httpie exposed a cross-platform method for aborting a request.
But is it cool enough for lukeed to add it? 🤔
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
Review the existing request API and its Node.js, XHR, and fetch paths to determine where a cross-platform abort method belongs. Compare the platform-specific mechanisms linked in the issue, then define an API that works consistently across them. Done means callers can abort an in-flight request through the exposed method on each supported platform.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100