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