A client to the backend, extending the endpoints as methods.
Attributes
Graph
Supertypes
class Object
trait Matchable
class Any
Members list
Value members
Abstract methods
def endpointRequestZIO[I, E <: Throwable, O](endpoint: Endpoint[Unit, I, E, O, Any])(payload: I): Task[O]
Call an endpoint with a payload.
Call an endpoint with a payload.
This method turns an endpoint into a Task, that:
build a request from a payload
sends it to the backend
returns the response.
Attributes
def securedEndpointRequestZIO[UserToken <: WithToken, I, E <: Throwable, O](endpoint: Endpoint[String, I, E, O, Any])(payload: I)(using session: Session[UserToken]): Task[O]
Call a secured endpoint with a payload.
Call a secured endpoint with a payload.
This method turns a secured endpoint into a Task, that:
build a request from a payload and a security token