Skip to content

feat: Add --sequence flag for sequential request execution#1820

Draft
Bester1 wants to merge 1 commit intohttpie:masterfrom
Bester1:feature/sequence-mode
Draft

feat: Add --sequence flag for sequential request execution#1820
Bester1 wants to merge 1 commit intohttpie:masterfrom
Bester1:feature/sequence-mode

Conversation

@Bester1
Copy link
Copy Markdown

@Bester1 Bester1 commented Apr 16, 2026

Implements sequential execution of multiple HTTPie request definitions from STDIN.

Features

  • Read requests from STDIN, one per line
  • Execute strictly in order, one at a time
  • Show progress [1/3] in TTY mode
  • Handle errors gracefully
  • Comments (#) and empty lines ignored

Example

cat requests.http | http --sequence

Testing

  • 8 new tests added
  • All 45+ existing tests pass

Closes #1683

@Bester1 Bester1 marked this pull request as draft April 16, 2026 21:12
Implements the ability to execute multiple HTTPie request definitions
from STDIN sequentially, as requested in issue httpie#1683.

Features:
- New --sequence flag to enable sequential mode
- Reads request definitions from STDIN, one per line
- Executes requests strictly in order, one at a time
- Shows progress indicator in TTY mode
- Handles errors gracefully without stopping execution
- Comment lines starting with # are ignored
- Empty lines are skipped
- Uses --ignore-stdin for individual requests to prevent conflicts

Example usage:
    $ cat requests.http | http --sequence
    $ echo -e "GET httpbin.org/get\nPOST httpbin.org/post foo=bar" | http --sequence

Tests:
- Added comprehensive test suite (8 tests, all passing)
- All existing tests continue to pass

Closes httpie#1683
@Bester1 Bester1 force-pushed the feature/sequence-mode branch from c03268a to 34c0f1c Compare April 16, 2026 22:14
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.

Proposal: Sequential execution of multiple HTTPie requests via STDIN

1 participant