NettyServerConfig

wvlet.airframe.http.netty.NettyServerConfig
case class NettyServerConfig(name: String, serverPort: Option[Int], controllerProvider: ControllerProvider, router: Router, useEpoll: Boolean, httpLoggerConfig: HttpLoggerConfig, httpLoggerProvider: HttpLoggerConfig => HttpLogger, customCodec: PartialFunction[Surface, MessageCodec[_]], executionContext: ExecutionContext)

Attributes

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

Members list

Value members

Concrete methods

def design: Design

Create a new DI design for instanciating the Netty server with this config

Create a new DI design for instanciating the Netty server with this config

Attributes

def designWithAsyncClient: Design
def designWithSyncClient: Design
def newHttpLogger: HttpLogger
def newServer(session: Session): NettyServer
def start[U](body: NettyServer => U): U
def withCustomCodec(p: PartialFunction[Surface, MessageCodec[_]]): NettyServerConfig
def withCustomCodec(m: Map[Surface, MessageCodec[_]]): NettyServerConfig
def withExtraLogEntries(f: () => Map[String, Any]): NettyServerConfig
def withHttpLogger(loggerProvider: HttpLoggerConfig => HttpLogger): NettyServerConfig
def withHttpLoggerConfig(f: HttpLoggerConfig => HttpLoggerConfig): NettyServerConfig
def withName(name: String): NettyServerConfig
def withPort(port: Int): NettyServerConfig
def withRouter(rxRouter: RxRouter): NettyServerConfig

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val port: Int