Skip to content

URLComponents: support ws(s)+unix schemes #918

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

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

jrflat
Copy link
Contributor

@jrflat jrflat commented Sep 17, 2024

Similar to #883, the common way to represent a "WebSocket over Unix socket" URL is to use the scheme ws+unix and set the URL's host to the percent-encoded path of the socket.

This PR adds ws+unix and wss+unix to the set of schemes where we percent-encode the host instead of IDNA-encode.

@jrflat
Copy link
Contributor Author

jrflat commented Sep 17, 2024

@swift-ci please test

@jrflat jrflat requested a review from parkera September 17, 2024 20:22
@jrflat jrflat merged commit d7be92b into swiftlang:main Sep 17, 2024
3 checks passed
cthielen pushed a commit to cthielen/swift-foundation that referenced this pull request Nov 8, 2024
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.

2 participants