Skip to content

v10.3.0

Compare
Choose a tag to compare
@losizm losizm released this 27 Oct 04:53

What's New?

All library references to java.net.URI are replaced with the newly added Uri type alias. There's also a Uri object, which provides several factory methods.

import scamper.Uri

// Create Uri from String
val target1 = Uri("https://api.duckduckgo.com/?q=scamper+scala+http")

// Create Uri with https scheme and supplied components (Uri.http() also available)
val target2 = Uri.https("api.duckduckgo.com", "/", query = "q=scamper+scala+http")

// Create Uri with scheme and scheme-specific-part
val target3 = Uri.create("https", "//api.duckduckgo.com/?q=scamper+scala+http")