Packages

sealed trait Server[-R, +E] extends AnyRef

Self Type
Server[R, E]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Server
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def ++[R1 <: R, E1 >: E](other: Server[R1, E1]): Server[R1, E1]
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def make(implicit ev: <:<[E, Throwable]): ZIO[R with EventLoopGroup with ServerChannelFactory with Scope, Throwable, Start]
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def start(implicit ev: <:<[E, Throwable]): ZIO[R with EventLoopGroup with ServerChannelFactory, Throwable, Nothing]
  17. def startDefault[R1 <: R](implicit ev: <:<[E, Throwable]): ZIO[R1, Throwable, Nothing]

    Launches the app with current settings: default EventLoopGroup (nThreads = 0) and ServerChannelFactory.auto.

  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. def withAcceptContinue(enable: Boolean): Server[R, E]

    Creates a new server using a HttpServerExpectContinueHandler to send a 100 HttpResponse if necessary.

  24. def withBinding(inetSocketAddress: InetSocketAddress): Server[R, E]

    Creates a new server listening on the provided InetSocketAddress.

  25. def withBinding(address: InetAddress, port: Int): Server[R, E]

    Creates a new server listening on the provided InetAddress and port.

  26. def withBinding(hostname: String, port: Int): Server[R, E]

    Creates a new server listening on the provided hostname and port.

  27. def withConsolidateFlush(enable: Boolean): Server[R, E]

    Creates a new server with FlushConsolidationHandler to control the flush operations in a more efficient way if enabled (@see <a href="https://netty.io/4.1/api/io/netty/handler/flush/FlushConsolidationHandler.html">FlushConsolidationHandler).

    Creates a new server with FlushConsolidationHandler to control the flush operations in a more efficient way if enabled (@see <a href="https://netty.io/4.1/api/io/netty/handler/flush/FlushConsolidationHandler.html">FlushConsolidationHandler).

  28. def withError[R1](errorHandler: (Throwable) ⇒ ZIO[R1, Nothing, Unit]): Server[R with R1, E]

    Creates a new server with the errorHandler provided.

  29. def withFlowControl(enable: Boolean): Server[R, E]

    Creates a new server using netty FlowControlHandler if enable (@see <a href="https://netty.io/4.1/api/io/netty/handler/flow/FlowControlHandler.html">FlowControlHandler).

  30. def withKeepAlive(enable: Boolean): Server[R, E]

    Creates a new server with netty's HttpServerKeepAliveHandler to close persistent connections when enable is true (@see <a href="https://netty.io/4.1/api/io/netty/handler/codec/http/HttpServerKeepAliveHandler.html">HttpServerKeepAliveHandler).

  31. def withLeakDetection(level: LeakDetectionLevel): Server[R, E]

    Creates a new server with the leak detection level provided (@see <a href="https://netty.io/4.1/api/io/netty/util/ResourceLeakDetector.Level.html">ResourceLeakDetector.Level).

  32. def withObjectAggregator(maxRequestSize: Int = Int.MaxValue): Server[R, E]

    Creates a new server with HttpObjectAggregator with the specified max size of the aggregated content.

  33. def withPort(port: Int): Server[R, E]

    Creates a new server listening on the provided port.

  34. def withRequestDecompression(enabled: Boolean, strict: Boolean): Server[R, E]

    Creates a new server with netty's HttpContentDecompressor to decompress Http requests (@see HttpContentDecompressor).

  35. def withSsl(sslOptions: ServerSSLOptions): Server[R, E]

    Creates a new server with the following ssl options.

  36. def withUnsafeChannelPipeline(unsafePipeline: (ChannelPipeline) ⇒ Unit): Server[R, E]

    Creates a new server by passing a function that modifies the channel pipeline.

    Creates a new server by passing a function that modifies the channel pipeline. This is generally not required as most of the features are directly supported, however think of this as an escape hatch for more advanced configurations that are not yet support by ZIO Http.

    NOTE: This method might be dropped in the future.

  37. def withUnsafeServerBootstrap(unsafeServerbootstrap: (ServerBootstrap) ⇒ Unit): Server[R, E]

    Provides unsafe access to netty's ServerBootstrap.

    Provides unsafe access to netty's ServerBootstrap. Modifying server bootstrap is generally not advised unless you know what you are doing.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped