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

No API to retrieve the schema type #51

Closed
d3lm opened this issue Sep 5, 2023 · 0 comments
Closed

No API to retrieve the schema type #51

d3lm opened this issue Sep 5, 2023 · 0 comments

Comments

@d3lm
Copy link
Member

d3lm commented Sep 5, 2023

While using the Rust crate for ada-url I have noticed that there's only url.host_type() but there's no getter for the schema type. It'd be great if we could expose the schema type as well so we have the same API surface as the C++ lib.

For example:

let url = Url::parse(href, None).expect("bad url");
let schema_type = url.schema_type();
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

No branches or pull requests

2 participants