Skip to content

feat: add -i/--include to print response headers like curl -i - #27

Merged
klobucar merged 2 commits into
mainfrom
feat/include-headers
Jun 11, 2026
Merged

feat: add -i/--include to print response headers like curl -i#27
klobucar merged 2 commits into
mainfrom
feat/include-headers

Conversation

@klobucar

Copy link
Copy Markdown
Owner

Headless mode showed response headers nowhere — the stats block covers status/TLS/timing on stderr and stdout carries only the body. -i prints the status line and headers to stdout before the body, in both piped and TTY modes, and implies headless so 'weeb -i URL' doesn't open the TUI.

With -i and no -o the piped-stdout BodySink is skipped so headers can print before the body (the --max-body cap then applies); -o keeps streaming since headers and body go to different destinations. Header values pass through outW, so a TTY still gets escape-sanitized output.

klobucar added 2 commits June 10, 2026 12:00
Headless mode showed response headers nowhere — the stats block covers
status/TLS/timing on stderr and stdout carries only the body. -i prints
the status line and headers to stdout before the body, in both piped and
TTY modes, and implies headless so 'weeb -i URL' doesn't open the TUI.

With -i and no -o the piped-stdout BodySink is skipped so headers can
print before the body (the --max-body cap then applies); -o keeps
streaming since headers and body go to different destinations. Header
values pass through outW, so a TTY still gets escape-sanitized output.
@klobucar
klobucar merged commit 6476b64 into main Jun 11, 2026
8 checks passed
@klobucar
klobucar deleted the feat/include-headers branch June 11, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant