NettyServerHandler

sttp.tapir.server.netty.internal.NettyServerHandler
class NettyServerHandler[F[_]](route: () => F, unsafeRunAsync: (() => F[ServerResponse[NettyResponse]]) => (Future[ServerResponse[NettyResponse]], () => Future[Unit]), maxContentLength: Option[Int])(implicit me: MonadError[F]) extends SimpleChannelInboundHandler[HttpRequest]

Value parameters

unsafeRunAsync

Function which dispatches given effect to run asynchronously, returning its result as a Future, and function of type () => Future[Unit] allowing cancellation of that Future. For example, this can be realized by cats.effect.std.Dispatcher.unsafeToFutureCancelable.

Attributes

Graph
Supertypes
class SimpleChannelInboundHandler[HttpRequest]
class ChannelInboundHandlerAdapter
trait ChannelInboundHandler
class ChannelHandlerAdapter
trait ChannelHandler
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def channelActive(ctx: ChannelHandlerContext): Unit

Attributes

Definition Classes
ChannelInboundHandlerAdapter -> ChannelInboundHandler
override def channelRead0(ctx: ChannelHandlerContext, request: HttpRequest): Unit

Attributes

Definition Classes
SimpleChannelInboundHandler
override def handlerAdded(ctx: ChannelHandlerContext): Unit

Attributes

Definition Classes
ChannelHandlerAdapter -> ChannelHandler

Inherited methods

def acceptInboundMessage(x$0: <FromJavaObject>): Boolean

Attributes

Inherited from:
SimpleChannelInboundHandler
def channelInactive(x$0: ChannelHandlerContext): Unit

Attributes

Inherited from:
ChannelInboundHandlerAdapter
def channelRead(x$0: ChannelHandlerContext, x$1: <FromJavaObject>): Unit

Attributes

Inherited from:
SimpleChannelInboundHandler
def channelReadComplete(x$0: ChannelHandlerContext): Unit

Attributes

Inherited from:
ChannelInboundHandlerAdapter
def channelRegistered(x$0: ChannelHandlerContext): Unit

Attributes

Inherited from:
ChannelInboundHandlerAdapter
def channelUnregistered(x$0: ChannelHandlerContext): Unit

Attributes

Inherited from:
ChannelInboundHandlerAdapter
def channelWritabilityChanged(x$0: ChannelHandlerContext): Unit

Attributes

Inherited from:
ChannelInboundHandlerAdapter
def exceptionCaught(x$0: ChannelHandlerContext, x$1: Throwable): Unit

Attributes

Inherited from:
ChannelInboundHandlerAdapter
def handlerRemoved(x$0: ChannelHandlerContext): Unit

Attributes

Inherited from:
ChannelHandlerAdapter
def isSharable(): Boolean

Attributes

Inherited from:
ChannelHandlerAdapter
def userEventTriggered(x$0: ChannelHandlerContext, x$1: <FromJavaObject>): Unit

Attributes

Inherited from:
ChannelInboundHandlerAdapter