AkkaHttpEndpoint

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

Constructor

Creates an Akka HTTP endpoint message transport plugin with specified effect system and request handler.

See also
Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait EndpointTransport[Effect, Context, Route]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def adapter: Route

Transport layer adapter.

Transport layer adapter.

Attributes

override def withHandler(handler: RequestHandler[Effect, Context]): AkkaHttpEndpoint[Effect]

Create a copy of this endpoint transport with specified RPC request handler.

Create a copy of this endpoint transport with specified RPC request handler.

Value parameters

handler

RPC request handler

Attributes

Returns

server transport

Definition Classes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Inherited fields

protected val logger: Logger

Attributes

Inherited from:
Logging (hidden)