HYPERJS.AI

IDEMPOTENCY

v0.1.0Idempotency-Key middleware — one-shot result caching for mutating requests.

$ hyper add idempotency

Copies 3 files into src/hyper/idempotency/ and updates hyper.lock.json.

DEPS

FILES

README

@hyper/idempotency

Idempotency-Key middleware — one-shot result caching for mutating requests.

Install

Components are installed as source into your repo, not pulled from npm:

bunx hyper add idempotency

Wires the alias @hyper/idempotency to src/hyper/idempotency/ (configurable in hyper.config.json). See hyperjs.ai for the full registry.

Usage

import { Hyper } from "@hyper/core"
import { idempotency } from "@hyper/idempotency"

export default new Hyper()
  .use(idempotency())
  .listen(3000)

Docs

See the main README and docs/ for guides and integration recipes.

License

MIT

MANIFEST