case class Http(port: Int, host: String, handlers: List[() => ChannelHandler], beforeStopBlock: () => Unit, chunkSize: Int = 1048576) extends HttpServer with DefaultServerInit with Product with Serializable
Default implementation of the Server trait. If you want to use a custom pipeline factory it's better to extend Server directly.
- Self Type
- Http
- Annotations
- @deprecated
- Deprecated
(Since version 0.8.1) Use unfiltered.netty.Server
- Source
- http.scala
- Alphabetic
- By Inheritance
- Http
- Serializable
- Product
- Equals
- DefaultServerInit
- HttpServer
- PlanServer
- NettyBase
- RunnableServer
- StartableServer
- Server
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Http(port: Int, host: String, handlers: List[() => ChannelHandler], beforeStopBlock: () => Unit, chunkSize: Int = 1048576)
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 beforeStop(block: => Unit): Http
- val beforeStopBlock: () => Unit
block of code to be invoked when the server is stopped, before connectons are closed
block of code to be invoked when the server is stopped, before connectons are closed
- Definition Classes
- Http → HttpServer
- 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
- val chunkSize: Int
Size, in bytes, to aggregate http requests in chunks of
Size, in bytes, to aggregate http requests in chunks of
- Definition Classes
- Http → DefaultServerInit
- def chunked(size: Int = 1048576): Http
Convenience method for adding a HttpObjectAggregator to the pipeline.
Convenience method for adding a HttpObjectAggregator to the pipeline. Supports chunked request bodies up to the specified maximum bytes. Without this aggregator, chunked requests will not not be handled.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def closeConnections(): NettyBase
- Definition Classes
- NettyBase
- def complete(line: ChannelPipeline): ChannelPipeline
- Attributes
- protected
- Definition Classes
- DefaultServerInit
- def destroy(): Http.this.type
- Definition Classes
- NettyBase → StartableServer
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- 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 handler(h: ChannelHandler): Http
- val handlers: List[() => ChannelHandler]
A list of functions which will produce a channel handler when invoked
A list of functions which will produce a channel handler when invoked
- Definition Classes
- Http → DefaultServerInit → HttpServer
- val host: String
host to bind to
- def initializer: ChannelInitializer[SocketChannel]
ChannelInitializer that initializes the server bootstrap
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makePlan(h: => ChannelHandler): Http
- Definition Classes
- Http → PlanServer
- 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
- val port: Int
port to listen on
- def portBindings: List[HttpPortBindingShim]
- Definition Classes
- NettyBase → StartableServer
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def resources(path: URL, cacheSeconds: Int = 60, passOnFail: Boolean = true): ServerBuilder
- Definition Classes
- HttpServer
- 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(): Http.this.type
- Definition Classes
- HttpServer → StartableServer
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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