bcoin-org / bcoin-org/bweb

Support Idempotency-Key Header for Safety

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12
Forks
18
PR merge metrics
No merged PRs in 30d

Description

The `Idempotency-Key` HTTP Header used by Stripe could be very useful to add as a `bweb` middleware. It can be used to prevent the same effect twice, meaning that you can send the same request twice and be sure that it only has the effect once. This is useful for when sending value and edge cases around failed requests.

https://stripe.com/blog/idempotency

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the Stripe idempotency article linked in the issue and then inspect bweb's middleware entry points. Define how the Idempotency-Key header should prevent repeated effects, including failed requests, and identify the middleware behavior and tests needed to demonstrate that duplicate requests are handled safely.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.