Endpoints

zio.http.api.Endpoints
See theEndpoints companion object
sealed trait Endpoints[-R, +E, AllIds]

Represents a collection of API endpoints that all have handlers.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Concat[R, E, Ids1, Ids2]
class HandledEndpoint[R, E, In0, Out0, Id]
Self type
Endpoints[R, E, AllIds]

Members list

Concise view

Value members

Concrete methods

def ++[R1 <: R, E1 >: E, AllIds2](that: Endpoints[R1, E1, AllIds2]): Endpoints[R1, E1, AllIds & AllIds2]

Combines this service and the specified service into a single service, which contains all endpoints and their associated handlers.

Combines this service and the specified service into a single service, which contains all endpoints and their associated handlers.

Attributes

def toHttpApp(implicit trace: Trace): App[R]
def toHttpRoute: HttpApp[R, E]

Converts this service into a zio.http.App, which can then be served via zio.http.Server.serve.

Converts this service into a zio.http.App, which can then be served via zio.http.Server.serve.

Attributes