DefaultRestApiClient

orchescala.worker.DefaultRestApiClient

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

protected def auth(request: Request[Either[String, String], Any])(using EngineRunContext): ZIO[SttpClientBackend, ServiceAuthError, Request[Either[String, String], Any]]

Attributes

Inherited from:
RestApiClient
protected def decodeResponse[ServiceOut : ClassTag](body: String): IO[ServiceBadBodyError, ServiceOut]

Attributes

Inherited from:
RestApiClient
protected def readBody(statusCode: StatusCode, response: Response[Either[String, String]], request: Request[Either[String, String], Any]): IO[ServiceRequestError, String]

Attributes

Inherited from:
RestApiClient
protected def requestWithOptBody[ServiceIn : Encoder](runnableRequest: RunnableRequest[ServiceIn]): IO[ServiceBadBodyError, RequestT[Identity, Either[String, String], Any]]

Attributes

Inherited from:
RestApiClient
protected def sendRequest(req: Request[Either[String, String], Any]): ZIO[SttpClientBackend, ServiceUnexpectedError, Response[Either[String, String]]]

Attributes

Inherited from:
RestApiClient
def sendRequest[ServiceIn : Encoder, ServiceOut : ClassTag](runnableRequest: RunnableRequest[ServiceIn]): () ?=> ServiceOut

Attributes

Inherited from:
RestApiClient

Extensions

Inherited extensions

extension (request: Request[Either[String, String], Any])
def addToken(token: String): RequestT[Identity, Either[String, String], Any]

Attributes

Inherited from:
RestApiClient