Server

object Server
Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Server.type

Type members

Classlikes

final case class Start(port: Int)

Holds server start information.

Holds server start information.

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def app[R, E](http: HttpApp[R, E]): Server[R, E]
def apply[R, E](http: HttpApp[R, E]): Server[R, E]

Creates a server from a http app.

Creates a server from a http app.

def bind(port: Int): UServer
def bind(hostname: String, port: Int): UServer
def bind(inetAddress: InetAddress, port: Int): UServer
def bind(inetSocketAddress: InetSocketAddress): UServer
def enableObjectAggregator(maxRequestSize: Int): UServer
def error[R](errorHandler: Throwable => ZIO[R, Nothing, Unit]): Server[R, Nothing]
def make[R](server: Server[R, Throwable]): ZIO[R & EventLoopGroup & ServerChannelFactory & Scope, Throwable, Start]
def port(port: Int): UServer
def ssl(sslOptions: ServerSSLOptions): UServer
def start[R](port: Int, http: HttpApp[R, Throwable]): ZIO[R, Throwable, Nothing]

Launches the app on the provided port.

Launches the app on the provided port.

def start[R](address: InetAddress, port: Int, http: HttpApp[R, Throwable]): ZIO[R, Throwable, Nothing]
def start[R](socketAddress: InetSocketAddress, http: HttpApp[R, Throwable]): ZIO[R, Throwable, Nothing]
def unsafePipeline(pipeline: ChannelPipeline => Unit): UServer
def unsafeServerBootstrap(serverBootstrap: ServerBootstrap => Unit): UServer