sttp.model.internal.UriCompatibility.scala Maven / Gradle / Ivy
package sttp.model.internal
import java.net.URLEncoder
private[sttp] object UriCompatibility {
def encodeDNSHost(host: String): String = {
Rfc3986.encode(Rfc3986.Host)(java.net.IDN.toASCII(host))
}
def encodeQuery(s: String, enc: String): String = URLEncoder.encode(s, enc)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy