HttpReadsHttpResponse

uk.gov.hmrc.http.HttpReadsHttpResponse

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Implicits

Implicits

implicit val readRaw: HttpReads[HttpResponse]

returns the HttpResponse as is - you will be responsible for checking any status codes.

returns the HttpResponse as is - you will be responsible for checking any status codes.

Attributes

implicit val readUnit: HttpReads[Unit]

Ignores the response and returns Unit - useful for handling 204 etc. It can be combined with error handling types (e.g. Either[UpstreamErrorResponse, Unit])

Ignores the response and returns Unit - useful for handling 204 etc. It can be combined with error handling types (e.g. Either[UpstreamErrorResponse, Unit])

Attributes