Endpoint

endpoints4s.play.client.EndpointsWithCustomErrors.Endpoint
case class Endpoint[A, B](request: () => A, response: () => B) extends A => Future[B]

A function that, given an A, eventually attempts to decode the B response.

Communication failures and protocol failures are represented by a Future.failed.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait A => Future[B]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply(a: A): Future[B]

Inherited methods

def andThen[A](g: Future[B] => A): T1 => A

Attributes

Inherited from:
Function1
def compose[A](g: A => A): A => R

Attributes

Inherited from:
Function1
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1