package server
Type Members
- trait BasicAuthentication extends algebra.BasicAuthentication with EndpointsWithCustomErrors
- trait BuiltInErrors extends algebra.BuiltInErrors
- trait ChunkedEntities extends algebra.ChunkedEntities with EndpointsWithCustomErrors
Interpreter for the algebra.ChunkedEntities algebra in the endpoints4s.pekkohttp.server family.
- trait ChunkedJsonEntities extends algebra.ChunkedJsonEntities with ChunkedEntities with JsonEntitiesFromCodecs
Interpreter for the algebra.ChunkedJsonEntities algebra in the endpoints4s.pekkohttp.server family.
- 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.
- trait EndpointsWithCustomErrors extends algebra.EndpointsWithCustomErrors with Urls with Methods with StatusCodes
Interpreter for algebra.Endpoints that performs routing using Pekko-HTTP.
- 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
- trait JsonEntitiesFromCodecs extends algebra.JsonEntitiesFromCodecs with EndpointsWithCustomErrors
Interpreter for algebra.JsonEntitiesFromCodecs that decodes JSON requests and encodes JSON responses using Pekko HTTP.
- 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. - trait JsonEntitiesFromSchemas extends algebra.JsonEntitiesFromSchemas with JsonEntitiesFromCodecs with JsonSchemas
Interpreter for algebra.JsonEntitiesFromSchemas that decodes JSON requests and encodes JSON responses using Pekko HTTP.
- trait Methods extends algebra.Methods
algebra.Methods interpreter that decodes and encodes methods.
- trait MuxEndpoints extends algebra.MuxEndpoints with EndpointsWithCustomErrors
Extends the Endpoints interpreter with algebra.MuxEndpoints support.
- 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
- 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
- trait StatusCodes extends algebra.StatusCodes
algebra.StatusCodes interpreter that decodes and encodes methods.
- trait Urls extends algebra.Urls with StatusCodes
algebra.Urls interpreter that decodes and encodes URLs.