Open
Description
I think it would probably be nicer/more convenient to mirror cURL functionality and exclude the headers by default when running commands from the CLI, just for the purpose of being able to easily copy the response body or pipe it to other commands. Instead you can opt in to include the headers using the -i
/--include
flag ilike cURL f you do want headers to be displayed (or alternatively as a directive?).
While you can just do something like:
httl get https://httl.dev/api/users | sed '1,/^$/d' | jq 'map(.firstName + " " + .lastName)' } | pbcopy
ideally people wouldn't have to figure out the sed command to delete everything before the space if it's excluded by default.