automorph.transport.http.endpoint.AkkaHttpEndpoint
See theAkkaHttpEndpoint companion object
final case class AkkaHttpEndpoint[Effect[_]](effectSystem: EffectSystem[Effect], mapException: Throwable => Int, readTimeout: FiniteDuration, handler: RequestHandler[Effect, Context]) extends EndpointTransport[Effect, Context, Route]
Akka HTTP endpoint message transport plugin.
Interprets HTTP request body as a RPC request and processes it with the specified RPC handler.
- The response returned by the RPC handler is used as HTTP response body.
Type parameters
- Effect
-
effect type
Value parameters
- effectSystem
-
effect system plugin
- handler
-
RPC request handler
- mapException
-
maps an exception to a corresponding HTTP status code
- readTimeout
-
HTTP request read timeout
Attributes
Members list
In this article