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

hammock.HttpResponse.scala Maven / Gradle / Ivy

The newest version!
package hammock

import cats.{Eq, Show}
import monocle.macros.Lenses

@Lenses case class HttpResponse(status: Status, headers: Map[String, String], entity: Entity)

object HttpResponse {

  implicit val show: Show[HttpResponse] = Show.fromToString
  implicit val eqHttpResponse = new Eq[HttpResponse] {
    def eqv(x: HttpResponse, y: HttpResponse): Boolean =
      x.status == y.status && x.headers == y.headers && Eq[Entity].eqv(x.entity, y.entity)
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy