io.hireproof.structure.Method.scala Maven / Gradle / Ivy
The newest version!
package io.hireproof.structure
import cats.Eq
final case class Method(value: String) extends AnyVal
object Method {
val Delete: Method = Method("DELETE")
val Get: Method = Method("GET")
val Head: Method = Method("HEAD")
val Patch: Method = Method("PATCH")
val Post: Method = Method("POST")
val Put: Method = Method("PUT")
implicit val eq: Eq[Method] = Eq.by(_.value)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy