8000 Suggestion: Exclude response headers by default in CLI · Issue #8 · httl-lang/HTTL · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Suggestion: Exclude response headers by default in CLI #8
@Not-Jayden

Description

@Not-Jayden

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0