Packages

package server

Server interpreters backed by Pekko HTTP

Source
package.scala
Linear Supertypes
Content Hierarchy

Type Members

  1. trait BasicAuthentication extends algebra.BasicAuthentication with EndpointsWithCustomErrors

  2. trait BuiltInErrors extends algebra.BuiltInErrors

  3. trait ChunkedEntities extends algebra.ChunkedEntities with EndpointsWithCustomErrors

    Interpreter for the algebra.ChunkedEntities algebra in the endpoints4s.pekkohttp.server family.

  4. trait ChunkedJsonEntities extends algebra.ChunkedJsonEntities with ChunkedEntities with JsonEntitiesFromCodecs

    Interpreter for the algebra.ChunkedJsonEntities algebra in the endpoints4s.pekkohttp.server family.

  5. trait Endpoints extends algebra.Endpoints with EndpointsWithCustomErrors with BuiltInErrors

    Interpreter for algebra.Endpoints that performs routing using Pekko-HTTP and uses algebra.BuiltInErrors to model client and server errors.

  6. trait EndpointsWithCustomErrors extends algebra.EndpointsWithCustomErrors with Urls with Methods with StatusCodes

    Interpreter for algebra.Endpoints that performs routing using Pekko-HTTP.

  7. trait JsonEntities extends algebra.JsonEntities with EndpointsWithCustomErrors

    Interpreter for algebra.JsonEntities

    Interpreter for algebra.JsonEntities

    To use it mix in support for your favourite Json library You can use one of pjfanning/pekko-http-json modules

  8. trait JsonEntitiesFromCodecs extends algebra.JsonEntitiesFromCodecs with EndpointsWithCustomErrors

    Interpreter for algebra.JsonEntitiesFromCodecs that decodes JSON requests and encodes JSON responses using Pekko HTTP.

  9. trait JsonEntitiesFromEncodersAndDecoders extends algebra.JsonEntities with EndpointsWithCustomErrors

    Interpreter for endpoints4s.algebra.JsonEntities that decodes JSON entities with a endpoints4s.Decoder and encodes JSON entities with an endpoints4s.Encoder.

    Interpreter for endpoints4s.algebra.JsonEntities that decodes JSON entities with a endpoints4s.Decoder and encodes JSON entities with an endpoints4s.Encoder.

    The difference with JsonEntitiesFromCodecs is that you don’t need bidirectional codecs: you only need an encoder to build responses, or a decoder to decode requests.

    It is especially useful to encode OpenApi documents into JSON entities.

  10. trait JsonEntitiesFromSchemas extends algebra.JsonEntitiesFromSchemas with JsonEntitiesFromCodecs with JsonSchemas

    Interpreter for algebra.JsonEntitiesFromSchemas that decodes JSON requests and encodes JSON responses using Pekko HTTP.

  11. trait Methods extends algebra.Methods

    algebra.Methods interpreter that decodes and encodes methods.

  12. trait MuxEndpoints extends algebra.MuxEndpoints with EndpointsWithCustomErrors

    Extends the Endpoints interpreter with algebra.MuxEndpoints support.

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

    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

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

    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

  15. trait StatusCodes extends algebra.StatusCodes

    algebra.StatusCodes interpreter that decodes and encodes methods.

  16. trait Urls extends algebra.Urls with StatusCodes

    algebra.Urls interpreter that decodes and encodes URLs.

Inherited from AnyRef

Inherited from Any

Interpreters

Ungrouped