Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert WebSocket URLRequest to RFC8441 HTTPRequest #92

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

guoye-zhang
Copy link
Contributor

WebSocket uses the extended-CONNECT form in HTTP/2 and HTTP/3. When creating an HTTPRequest from a URLRequest, we should translate it into the new form.

:method: GET -> CONNECT
:scheme: wss/ws -> https/http
:protocol: websocket

HTTPTypes defaults to modern HTTP versions, and the expectation is that the HTTP/1 serializer has to translate the extended-CONNECT request back to the old request form.

@guoye-zhang guoye-zhang requested review from Lukasa and ekinnear March 4, 2025 21:26
@guoye-zhang guoye-zhang added the 🔨 semver/patch No public API change. label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant