unfiltered.netty

Http

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

Linear Supertypes
Serializable, Serializable, Product, Equals, DefaultServerInit, HttpServer, PlanServer[ChannelHandler], NettyBase, RunnableServer, StartableServer, util.Server, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Http
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. DefaultServerInit
  7. HttpServer
  8. PlanServer
  9. NettyBase
  10. RunnableServer
  11. StartableServer
  12. Server
  13. AnyRef
  14. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Http(port: Int, host: String, handlers: List[() ⇒ ChannelHandler], beforeStopBlock: () ⇒ Unit, chunkSize: Int = 1048576)

Type Members

  1. type ServerBuilder = Http

    Definition Classes
    Http → PlanServer → Server

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. val acceptor: EventLoopGroup

    EventLoopGroup associated with accepting client connections

    EventLoopGroup associated with accepting client connections

    Attributes
    protected
    Definition Classes
    NettyBase
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def beforeStop(block: ⇒ Unit): Http

  7. 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
    HttpHttpServer
  8. 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
  9. 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
    HttpDefaultServerInit
  10. 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.

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def closeConnections(): NettyBase

    Definition Classes
    NettyBase
  13. def complete(line: ChannelPipeline): ChannelPipeline

    Attributes
    protected
    Definition Classes
    DefaultServerInit
  14. def destroy(): Http.this.type

    Definition Classes
    NettyBase → StartableServer
  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def handler(h: ChannelHandler): Http

  19. 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
    HttpDefaultServerInitHttpServer
  20. val host: String

    host to bind to

    host to bind to

    Definition Classes
    HttpNettyBase
  21. def initializer: ChannelInitializer[SocketChannel]

    ChannelInitializer that initializes the server bootstrap

    ChannelInitializer that initializes the server bootstrap

    Definition Classes
    HttpNettyBase
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def makePlan(h: ⇒ ChannelHandler): Http

    Definition Classes
    Http → PlanServer
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def plan(plan: ChannelHandler): ServerBuilder

    Definition Classes
    PlanServer
  28. val port: Int

    port to listen on

    port to listen on

    Definition Classes
    HttpNettyBase
  29. def portBindings: List[HttpPortBindingShim]

    Definition Classes
    NettyBase → StartableServer
  30. def resources(path: URL, cacheSeconds: Int = 60, passOnFail: Boolean = true): ServerBuilder

    Definition Classes
    HttpServer
  31. def run(afterStart: (ServerBuilder) ⇒ Unit, afterStop: (ServerBuilder) ⇒ Unit): Unit

    Definition Classes
    RunnableServer
  32. def run(afterStart: (ServerBuilder) ⇒ Unit): Unit

    Definition Classes
    RunnableServer
  33. def run(): Unit

    Definition Classes
    RunnableServer
  34. 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
  35. def start(): ServerBuilder

    Starts default server bootstrap

    Starts default server bootstrap

    Definition Classes
    NettyBase → StartableServer
  36. def stop(): Http.this.type

    Definition Classes
    HttpServer → StartableServer
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  38. val url: String

    Definition Classes
    NettyBase
  39. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. val workers: EventLoopGroup

    EventLoopGroup associated with handling client requests

    EventLoopGroup associated with handling client requests

    Attributes
    protected
    Definition Classes
    NettyBase

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from DefaultServerInit

Inherited from HttpServer

Inherited from PlanServer[ChannelHandler]

Inherited from NettyBase

Inherited from RunnableServer

Inherited from StartableServer

Inherited from util.Server

Inherited from AnyRef

Inherited from Any

Ungrouped