lukeed / lukeed/httpie

Ability to abort requests

Open
#39 1 comment 1 reaction 0 assignees View on GitHub

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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.