Skip to content

Consider making HttpUrl.getChecked() public #3850

Closed
@grodin

Description

@grodin

Using HttpUrl.parse() in Kotlin to parse constant urls that you know will parse is slightly annoying because of the nullable return.

I've worked around it by writing a static method parseHttpUrlOrThrow() but this essentially duplicates the existing HttpUrl.getChecked(), which is unfortunately package private. It would be useful if this method was public.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions