Skip to content

Conversation

@anaryer
Copy link

@anaryer anaryer commented Dec 1, 2025

Description:
This PR adds support for reading headers from a file using the @ syntax. It handles multiple headers per file and empty lines, and raises a ParseError for malformed headers. Updated RequestItems.from_args to handle multi-header files. Added test_headers.py to verify parsing and CLI usage.
Testing:
Ran test_headers.py to confirm parsing and error handling. Verified with CLI using http get https://httpbin.org/headers @headers.txt

@anaryer anaryer changed the title Add support for loading headers from files Add support for loading headers from files from Issue #1595 Dec 1, 2025
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