Skip to content

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
@guoye-zhang
Copy link
Contributor Author

@swift-ci please test

@guoye-zhang
Copy link
Contributor Author

@Lukasa It appears that macOS tests / Xcode 16.2 pipeline is no longer present but still required for PR to be merged. Would you check the repo settings?

@Lukasa
Copy link
Contributor

Lukasa commented Oct 1, 2025

Done, rerunning CI now.

@guoye-zhang guoye-zhang closed this Oct 5, 2025
auto-merge was automatically disabled October 5, 2025 18:08

Pull request was closed

@guoye-zhang guoye-zhang deleted the websocket branch October 5, 2025 18:08
@guoye-zhang guoye-zhang restored the websocket branch October 5, 2025 18:09
@guoye-zhang guoye-zhang reopened this Oct 5, 2025
@guoye-zhang guoye-zhang merged commit 9c9d5ea into apple:main Oct 5, 2025
108 of 110 checks passed
@guoye-zhang guoye-zhang deleted the websocket branch October 5, 2025 18:13
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.

3 participants