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

com.netaporter.uri.decoding.PermissiveDecoder.scala Maven / Gradle / Ivy

The newest version!
package com.netaporter.uri.decoding

import com.netaporter.uri.Uri

class PermissiveDecoder(child: UriDecoder) extends UriDecoder {
  def decode(s: String) = {
    try {
      child.decode(s)
    } catch {
      case _: Throwable => s
    }
  }
}

object PermissivePercentDecoder extends PermissiveDecoder(PercentDecoder)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy