Navigation | Overlay |
---|---|
t Navigate files | h Toggle hits |
y Change url to tip of branch | m Toggle misses |
b / v Jump to prev/next hit line | p Toggle partial |
z / x Jump to prev/next missed or partial line | 1..9 Toggle flags |
shift + o Open current page in GitHub | a Toggle all on |
/ or ? Show keyboard shortcuts dialog | c Toggle context lines or commits |
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 |
implicit val show: Show[HttpResponse] = Show.fromToString |
|
11 |
implicit val eqHttpResponse = new Eq[HttpResponse] { |
|
12 |
def eqv(x: HttpResponse, y: HttpResponse): Boolean = |
|
13 |
x.status == y.status && x.headers == y.headers && Eq[Entity].eqv(x.entity, y.entity) |
|
14 |
}
|
|
15 |
}
|
Read our documentation on viewing source code .