sttp.tapir.server.netty

Members list

Concise view

Type members

Classlikes

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class NettyFutureServer[SA <: SocketAddress](routes: Vector[FutureRoute], options: NettyFutureServerOptions[SA])(implicit ec: ExecutionContext)

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class NettyFutureServerBinding[SA <: SocketAddress](localSocket: SA, stop: () => Future[Unit])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class NettyFutureServerOptions[SA <: SocketAddress](interceptors: List[Interceptor[Future]], createFile: ServerRequest => Future[TapirFile], deleteFile: TapirFile => Future[Unit], nettyOptions: NettyOptions[SA])

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class NettyOptions[SA <: SocketAddress](socketAddress: SA, eventLoopConfig: EventLoopConfig, shutdownEventLoopGroupOnClose: Boolean, initPipeline: (ChannelPipeline, ChannelHandler) => Unit)

Netty configuration options. Default instances for TCP and domain sockets are available via the NettyOptions#default companion object and NettyOptions#defaultDomainSocket. Full customisation is available via NettyOptionsBuilder.

Netty configuration options. Default instances for TCP and domain sockets are available via the NettyOptions#default companion object and NettyOptions#defaultDomainSocket. Full customisation is available via NettyOptionsBuilder.

Attributes

SA

the type of socket being used; can be either InetSocketAddress for TCP sockets (the most common case), or DomainSocketAddress for unix domain sockets.

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class NettyServerRequest(req: FullHttpRequest, attributes: AttributeMap) extends ServerRequest

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ServerRequest
trait RequestMetadata
trait HasHeaders
class Object
trait Matchable
class Any
object Route

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Route.type

Types

type FutureRoute = () => Future
type NettyResponse = ChannelHandlerContext => NettyResponseContent
type Route[F[_]] = NettyServerRequest => F[Option[ServerResponse[NettyResponse]]]