Skip to content

Add HTTP version aliases and clearer protocol errors#777

Merged
ryanfowler merged 1 commit into
mainfrom
improve-http-protocol-errors
Jun 17, 2026
Merged

Add HTTP version aliases and clearer protocol errors#777
ryanfowler merged 1 commit into
mainfrom
improve-http-protocol-errors

Conversation

@ryanfowler

Copy link
Copy Markdown
Owner

Summary

  • Add hidden --http1, --http2, and --http3 aliases alongside --http
  • Route HTTP version selection through shared CLI helpers so config, HTTP, TLS, WebSocket, and inspection paths agree
  • Improve the plain-HTTP/2 error to explain the h2c limitation
  • Update docs and completion metadata to match the new aliases

Testing

  • Unit tests added for alias parsing and updated HTTP version validation
  • Integration test coverage updated to verify --http2 fails with the new guidance

@ryanfowler ryanfowler merged commit 857f009 into main Jun 17, 2026
4 checks passed
@ryanfowler ryanfowler deleted the improve-http-protocol-errors branch June 17, 2026 04:06
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