Open
Description
The docs make it pretty clear how to make a request and decode the entity of the HttpResponse:
val response = Hammock
.request(Method.GET, uri"https://api.fidesmo.com/apps", Map())
.as[List[String]]
.exec[IO]
And you can get the headers like:
val response = Hammock
.request(Method.GET, uri"https://api.fidesmo.com/apps", Map())
.map(_.headers)
.as[List[String]]
.exec[IO]
But how could one decode the response and consume the headers and body into a case class like:
case class BodyAndHeaders[T](body: T, responseHeaders: Map[String, String])
Metadata
Metadata
Assignees
Labels
No labels
Activity