Package

endpoints.play

server

Permalink

package server

Server interpreters backed by Play framework

Source
package.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. server
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait Assets extends algebra.Assets with Endpoints

    Permalink

    Interpreter for algebra.Assets that performs routing using Play framework

  2. trait BasicAuthentication extends algebra.BasicAuthentication with Endpoints

    Permalink

  3. class DefaultPlayComponents extends PlayComponents

    Permalink

    Instantiation of the Play components for a given server configuration.

  4. trait Endpoints extends algebra.Endpoints with Urls with Methods with StatusCodes

    Permalink

    Interpreter for algebra.Endpoints that performs routing using Play framework.

    Interpreter for algebra.Endpoints that performs routing using Play framework.

    Consider the following endpoints definition:

    trait MyEndpoints extends algebra.Endpoints with algebra.JsonEntities {
      val inc = endpoint(get(path / "inc" ? qs[Int]("x")), jsonResponse[Int])
    }

    You can get a router for them as follows:

    object MyRouter extends MyEndpoints with play.server.Endpoints with play.server.JsonEntities {
    
      val routes = routesFromEndpoints(
        inc.implementedBy(x => x + 1)
      )
    
    }

    Then MyRouter.routes can be used to define a proper Play router as follows:

    val router = play.api.routing.Router.from(MyRouter.routes)
  5. trait JsonEntitiesFromCodec extends Endpoints with algebra.JsonEntitiesFromCodec

    Permalink

    Interpreter for endpoints.algebra.JsonEntitiesFromCodec that decodes JSON requests and encodes JSON responses.

  6. trait LowLevelEndpoints extends algebra.LowLevelEndpoints with Endpoints

    Permalink
  7. trait Methods extends algebra.Methods

    Permalink

    algebra.Methods interpreter that decodes and encodes methods.

  8. trait MuxEndpoints extends algebra.MuxEndpoints with Endpoints

    Permalink

  9. trait MuxHandler[Req <: MuxRequest, Resp] extends AnyRef

    Permalink

    A function whose return type depends on the type of the given req.

    A function whose return type depends on the type of the given req.

    Req

    Request base type

    Resp

    Response base type

  10. trait MuxHandlerAsync[Req <: MuxRequest, Resp] extends AnyRef

    Permalink

    A function whose return type depends on the type of the given req.

    A function whose return type depends on the type of the given req.

    Req

    Request base type

    Resp

    Response base type

  11. trait PlayComponents extends AnyRef

    Permalink

    Play components needed by the interpreter

  12. trait StatusCodes extends algebra.StatusCodes

    Permalink
  13. trait Urls extends algebra.Urls

    Permalink

    algebra.Urls interpreter that decodes and encodes URLs.

Value Members

  1. object HttpServer

    Permalink

Inherited from AnyRef

Inherited from Any

Interpreters

Ungrouped