Closed ducaale closed 8 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.
-j
--json
content-type
application/json
Since xh and HTTPie serialise the request body as JSON by default, using
-j
/--json
might not be necessary. Moreover, this flag always sets thecontent-type
header asapplication/json
, which might not be desirable in the absence of a request body.