A robust 404 respond for missing endpoints.
Creates a new Endpoint using the given r function.
Creates a new Endpoint using the given r function.
The route for the new Endpoint
Joins given sequence of endpoints by orElse-ing them.
Joins given sequence of endpoints by orElse-ing them.
a request type
a response type
the sequence of endpoints to join
a joined endpoint
Allows to use an Endpoint when Service is expected.
Allows to use an Endpoint when Service is expected. The implicit conversion is possible if there is an implicit view from Req to Request available in the scope.
val e: Endpoint[Request, Response] = ??? Httpx.serve(new InetSocketAddress(8081), e)
the request type
the response type
the endpoint to convert
the evidence of implicit view
a service that delegates the requests to the underlying endpoint
(Since version 0.8.0) Endpoint is deprecated in favor of coproduct routers
A companion object for Endpoint
(Since version 0.8.0) Endpoint is deprecated in favor of coproduct routers