All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.lemonlabs.uri.decoding.UriDecoder.scala Maven / Gradle / Ivy

The newest version!
package io.lemonlabs.uri.decoding

trait UriDecoder extends Product with Serializable {
  def decodeBytes(data: String, charset: String): Array[Byte]

  def decode(u: String): String

  def decodeTuple(kv: (String, Option[String])) =
    decode(kv._1) -> kv._2.map(decode)

  def +(other: UriDecoder) = ChainedUriDecoder(this :: other :: Nil)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy