oha
v0.1.0-alpha
Published
CLI wrapper for oh-no-again: batch HTTP requests from a file
Readme
oha 🧪
A CLI wrapper around oh-no-again to batch fetch from a file of inputs.
🚀 Usage
npx oha --input users.json --url "https://api.example.com/users/{{id}}"🔧 Options
--inputPath to input JSON array--urlURL template (e.g.https://api.com/{{id}})--concurrencyMax parallel requests (default: 5)--retriesRetry attempts (default: 3)--delayDelay for retry backoff (default: 300ms)--timeoutPer-request timeout (default: 1000ms)--metaInclude result metadata--fail-fastStop on first failure
🧪 Example users.json
[{ "id": 1 }, { "id": 2 }, { "id": 3 }]MIT © Bouhadjila Hamza
