-
-
Notifications
You must be signed in to change notification settings - Fork 370
Allow custom schemes to have non-opaque origins #1111
Copy link
Copy link
Open
Description
- Note that this crate implements the URL Standard not RFC 1738 or RFC 3986
Describe the bug
All schemes that are not on the standard list get an opaque origin from
Line 17 in a66f422
| pub fn url_origin(url: &Url) -> Origin { |
It would be very useful to also be able to specify a list of schemes that are not standard ones but can also get a tuple origin. If we reuse the Origin::Tuple() for these we also need to let them provide a default port (see
Line 186 in a66f422
| pub fn default_port(scheme: &str) -> Option<u16> { |
I guess that ideally custom schemes should bring their own origin type and we should refactor the whole Origin type to be trait based.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels