Response

endpoints4s.sttp.client.EndpointsWithCustomErrors.Response
trait Response[A]

An HTTP response (status, headers, and entity) carrying an information of type A

Values of type Response[A] can be constructed by using the operations ok, badRequest, internalServerError, or the more general operation response.

Attributes

Note

This type has implicit methods provided by the InvariantFunctorSyntax and ResponseSyntax classes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def decodeResponse(response: Response[String]): Option[R[A]]

Function to validate the response (headers, code).

Function to validate the response (headers, code).

Attributes