hyperstackjs / hyperstack

The pragmatic app framework for builders 🐶
https://hyperstackjs.io
MIT License
385 stars 12 forks source link

Omit `--json` flag from xh examples #12

Closed ducaale closed 8 months ago

ducaale commented 9 months ago

Since xh and HTTPie serialise the request body as JSON by default, using -j/--json might not be necessary. Moreover, this flag always sets the content-type header as application/json, which might not be desirable in the absence of a request body.