
com.mle.android.http.Protocols.scala Maven / Gradle / Ivy
The newest version!
package com.mle.android.http
/**
*
* @author mle
*/
object Protocols extends Enumeration {
type Protocol = Value
val Http, Https = Value
def withNameIgnoreCase(name: String) = name.toLowerCase match {
case "http" => Http
case "https" => Https
case other => throw new NoSuchElementException(s"Unknown Protocols name: $other")
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy