automorph.transport.http.endpoint

Members list

Type members

Classlikes

final case class FinagleHttpEndpoint[Effect[_]](effectSystem: EffectSystem[Effect], mapException: Throwable => Int, handler: RequestHandler[Effect, Context]) extends Service[Request, Response], EndpointTransport[Effect, Context, Service[Request, Response]]

Finagle HTTP endpoint message transport plugin.

Finagle 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

Attributes

Constructor

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

See also
Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Closable
trait Request => Future[Response]
class Object
trait Matchable
class Any
Show all
case object FinagleHttpEndpoint

Attributes

Companion
class
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type