sealed trait Server[-R, +E] extends AnyRef
- Self Type
- Server[R, E]
- Alphabetic
- By Inheritance
- Server
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def ++[R1 <: R, E1 >: E](other: Server[R1, E1]): Server[R1, E1]
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def make(implicit ev: <:<[E, Throwable]): ZIO[R with EventLoopGroup with ServerChannelFactory with Scope, Throwable, Start]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def start(implicit ev: <:<[E, Throwable]): ZIO[R with EventLoopGroup with ServerChannelFactory, Throwable, Nothing]
-
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withAcceptContinue(enable: Boolean): Server[R, E]
Creates a new server using a HttpServerExpectContinueHandler to send a 100 HttpResponse if necessary.
-
def
withBinding(inetSocketAddress: InetSocketAddress): Server[R, E]
Creates a new server listening on the provided InetSocketAddress.
-
def
withBinding(address: InetAddress, port: Int): Server[R, E]
Creates a new server listening on the provided InetAddress and port.
-
def
withBinding(hostname: String, port: Int): Server[R, E]
Creates a new server listening on the provided hostname and port.
-
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).
-
def
withError[R1](errorHandler: (Throwable) ⇒ ZIO[R1, Nothing, Unit]): Server[R with R1, E]
Creates a new server with the errorHandler provided.
-
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).
-
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).
-
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).
-
def
withObjectAggregator(maxRequestSize: Int = Int.MaxValue): Server[R, E]
Creates a new server with HttpObjectAggregator with the specified max size of the aggregated content.
-
def
withPort(port: Int): Server[R, E]
Creates a new server listening on the provided port.
-
def
withRequestDecompression(enabled: Boolean, strict: Boolean): Server[R, E]
Creates a new server with netty's HttpContentDecompressor to decompress Http requests (@see HttpContentDecompressor).
-
def
withSsl(sslOptions: ServerSSLOptions): Server[R, E]
Creates a new server with the following ssl options.
-
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.
-
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.