Endpoint

endpoints4s.play.server.EndpointsWithCustomErrors.Endpoint
case class Endpoint[A, B](request: Request[A], response: () => B)

Concrete representation of an Endpoint for routing purpose.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def call(a: A): Call

Reverse routing

Reverse routing

Attributes

def implementedBy(service: A => B): EndpointWithHandler[A, B]

Provides an actual implementation to the endpoint definition, to turn it into something effectively usable by the Play router.

Provides an actual implementation to the endpoint definition, to turn it into something effectively usable by the Play router.

Value parameters

service

Function that turns the information carried by the request into the information necessary to build the response

Attributes

def implementedByAsync(service: A => Future[B]): EndpointWithHandler[A, B]

Same as implementedBy, but with an async service.

Same as implementedBy, but with an async service.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product