
urldsl.url.DefaultUrlStringGenerator.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of url-dsl_3 Show documentation
Show all versions of url-dsl_3 Show documentation
A tiny library for parsing and creating urls in a type-safe way
The newest version!
package urldsl.url
trait DefaultUrlStringGenerator {
protected val default0: UrlStringGenerator = (str: String, encoding: String) =>
java.net.URLEncoder
.encode(str, encoding)
.replaceAll("\\+", "%20")
.replaceAll("%21", "!")
.replaceAll("%27", "'")
.replaceAll("%28", "(")
.replaceAll("%29", ")")
.replaceAll("%7E", "~")
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy