kevin-lee / refined4s

newtype and refinement (refined) type for Scala 3
https://refined4s.kevinly.dev
MIT License
10 stars 2 forks source link

[`refined4s-core`] Add `toURL` to `Uri`, and add `toURI` to `toUrl` #358

Closed kevin-lee closed 2 months ago

kevin-lee commented 2 months ago

Summary

[refined4s-core] Add toURL to Uri, and add toURI to toUrl

Version

0.18.0

Description

Uri("https://www.google.com").toURL
// java.net.URL("https://www.google.com")

Url("https://www.google.com").toURI
// java.net.URI("https://www.google.com")