1
package hammock
2

3
import cats.{Eq, Show}
4
import monocle.macros.Lenses
5

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

8
object HttpResponse {
9

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

Read our documentation on viewing source code .

Loading