hatoo / hatoo/oha

Feature request: support dynamic request body similar to --rand-regex-url

Open
#586 1 comment 4 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
10.5k
Forks
298
Avg merge
4h 20m
Merged PRs (30d)
5

Description

I'm trying to create load for the enpoint which has a unique name constraint for the created entity.
So the imaginary ⚠️ syntax could be like:
```bash
oha --method PUT -H 'Content-Type: application/json' -d '{"name":"name-{{uuid}}"}' http://localhost/entity
# or
oha --method PUT -H 'Content-Type: application/json' -d '{"name":"name-[a-z][a-z][0-9]"}' http://localhost/entity
```
Following snippet obviously do not work, as well:
```bash
oha --method PUT -H 'Content-Type: application/json' -d "{\"name\":\"name-`uuidgen`\"}" http://localhost/entity
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.