Skip to content

No API to retrieve the schema type #51

Closed
@d3lm

Description

@d3lm

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions