trait HttpServer extends NettyBase with PlanServer[ChannelHandler]
An HTTP or HTTPS server
- Annotations
- @deprecated
- Deprecated
(Since version 0.8.1) Use unfiltered.netty.Server
- Source
- http.scala
- Alphabetic
- By Inheritance
- HttpServer
- PlanServer
- NettyBase
- RunnableServer
- StartableServer
- Server
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract type ServerBuilder >: HttpServer.this.type <: PlanServer[ChannelHandler]
- Definition Classes
- PlanServer → Server
Abstract Value Members
- abstract def beforeStopBlock: () => Unit
block of code to be invoked when the server is stopped, before connectons are closed
- abstract def handlers: List[() => ChannelHandler]
list of functions which will produce a channel handler when invoked
- abstract val host: String
host to bind to
host to bind to
- Definition Classes
- NettyBase
- abstract def initializer: ChannelInitializer[SocketChannel]
ChannelInitializer that initializes the server bootstrap
ChannelInitializer that initializes the server bootstrap
- Attributes
- protected
- Definition Classes
- NettyBase
- abstract def makePlan(plan: => ChannelHandler): ServerBuilder
- Definition Classes
- PlanServer
- abstract val port: Int
port to listen on
port to listen on
- Definition Classes
- NettyBase
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val acceptor: EventLoopGroup
EventLoopGroup associated with accepting client connections
EventLoopGroup associated with accepting client connections
- Attributes
- protected
- Definition Classes
- NettyBase
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bestEventLoopGroup: MultithreadEventLoopGroup
- Attributes
- protected
- Definition Classes
- NettyBase
- val channels: DefaultChannelGroup
any channels added to this will receive broadcasted events
any channels added to this will receive broadcasted events
- Attributes
- protected
- Definition Classes
- NettyBase
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def closeConnections(): NettyBase
- Definition Classes
- NettyBase
- def destroy(): HttpServer.this.type
- Definition Classes
- NettyBase → StartableServer
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def plan(plan: ChannelHandler): ServerBuilder
- Definition Classes
- PlanServer
- def portBindings: List[HttpPortBindingShim]
- Definition Classes
- NettyBase → StartableServer
- def resources(path: URL, cacheSeconds: Int = 60, passOnFail: Boolean = true): util.PlanServer.ServerBuilder.ServerBuilder
- def run(afterStart: (ServerBuilder) => Unit, afterStop: (ServerBuilder) => Unit): Unit
- Definition Classes
- RunnableServer
- def run(afterStart: (ServerBuilder) => Unit): Unit
- Definition Classes
- RunnableServer
- def run(): Unit
- Definition Classes
- RunnableServer
- def start(preBind: (ServerBootstrap) => ServerBootstrap): ServerBuilder
Starts server with preBind callback called before connection binding
Starts server with preBind callback called before connection binding
- Definition Classes
- NettyBase
- def start(): ServerBuilder
Starts default server bootstrap
Starts default server bootstrap
- Definition Classes
- NettyBase → StartableServer
- def stop(): HttpServer.this.type
- Definition Classes
- HttpServer → StartableServer
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val url: String
- Definition Classes
- NettyBase
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- val workers: EventLoopGroup
EventLoopGroup associated with handling client requests
EventLoopGroup associated with handling client requests
- Attributes
- protected
- Definition Classes
- NettyBase