automorph.transport.http.endpoint.JettyHttpEndpoint
See theJettyHttpEndpoint companion object
final case class JettyHttpEndpoint[Effect[_]](effectSystem: EffectSystem[Effect], mapException: Throwable => Int, handler: RequestHandler[Effect, Context]) extends HttpServlet, EndpointTransport[Effect, Context, HttpServlet]
Jetty HTTP endpoint message transport plugin.
Interprets HTTP request body as an 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
Attributes
- Constructor
-
Creates a Jetty HTTP endpoint message transport plugin with specified effect system and request handler.
- See also
- Companion
- object
- Graph
-
- Supertypes
-
trait Producttrait Equalsclass HttpServletclass GenericServlettrait Serializabletrait ServletConfigtrait Servletclass Objecttrait Matchableclass Any
Members list
In this article