Skip to content

Conversation

moonheart08
Copy link

@moonheart08 moonheart08 commented Sep 1, 2025

Currently, if you have a custom scheme that is compatible with the special schemes, set_scheme will reject it, and there is no API to do the scheme set and fixup yourself.

This is motivated by RobustToolbox's ss14/ss14s protocols, which are just http/https (not HTTP3) with the guarantee a game server is running on the UDP port.

Prior to this PR, the only way to construct an http URL from a valid ss14 scheme is to create the new URL yourself with strings, which is unnecessarily cumbersome.

Technical changes

Only extracting the scheme setting portion of set_scheme into set_scheme_internal.

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