Packages

class BlazeServerBuilder[F[_]] extends ServerBuilder[F] with BlazeBackendBuilder[Server]

BlazeServerBuilder is the component for the builder pattern aggregating different components to finally serve requests.

Variables:

Source
BlazeServerBuilder.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BlazeServerBuilder
  2. BlazeBackendBuilder
  3. ServerBuilder
  4. BackendBuilder
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Self = BlazeServerBuilder[F]
    Definition Classes
    BlazeServerBuilder → BlazeBackendBuilder → ServerBuilder

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. implicit val F: Async[F]
    Attributes
    protected
    Definition Classes
    BlazeServerBuilder → ServerBuilder → BackendBuilder
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. final def bindAny(host: String): Self
    Definition Classes
    ServerBuilder
  7. final def bindHttp(port: Int, host: String): Self
    Definition Classes
    ServerBuilder
  8. final def bindLocal(port: Int): Self
    Definition Classes
    ServerBuilder
  9. def bindSocketAddress(socketAddress: InetSocketAddress): Self
    Definition Classes
    BlazeServerBuilder → ServerBuilder
  10. def channelOption[A](socketOption: SocketOption[A]): Option[A]
    Definition Classes
    BlazeBackendBuilder
  11. val channelOptions: ChannelOptions
    Definition Classes
    BlazeServerBuilder → BlazeBackendBuilder
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def resource: Resource[F, Server]
    Definition Classes
    BlazeServerBuilder → ServerBuilder → BackendBuilder
  23. final def serve: Stream[F, ExitCode]
    Definition Classes
    ServerBuilder
  24. final def serveWhile(terminateWhenTrue: Signal[F, Boolean], exitWith: Ref[F, ExitCode]): Stream[F, ExitCode]
    Definition Classes
    ServerBuilder
  25. def socketKeepAlive: Option[Boolean]
    Definition Classes
    BlazeBackendBuilder
  26. def socketReceiveBufferSize: Option[Int]
    Definition Classes
    BlazeBackendBuilder
  27. def socketReuseAddress: Option[Boolean]
    Definition Classes
    BlazeBackendBuilder
  28. def socketSendBufferSize: Option[Int]
    Definition Classes
    BlazeBackendBuilder
  29. def stream: Stream[F, Server]
    Definition Classes
    BackendBuilder
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def tcpNoDelay: Option[Boolean]
    Definition Classes
    BlazeBackendBuilder
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  36. def withBanner(banner: Seq[String]): Self
    Definition Classes
    BlazeServerBuilder → ServerBuilder
  37. def withBufferSize(size: Int): Self
  38. def withChannelOption[A](key: SocketOption[A], value: A): Self
    Definition Classes
    BlazeBackendBuilder
  39. def withChannelOptions(channelOptions: ChannelOptions): BlazeServerBuilder[F]
    Definition Classes
    BlazeServerBuilder → BlazeBackendBuilder
  40. def withChunkBufferMaxSize(chunkBufferMaxSize: Int): BlazeServerBuilder[F]
  41. def withConnectorPoolSize(size: Int): Self
  42. def withDefaultChannelOption[A](key: SocketOption[A]): Self
    Definition Classes
    BlazeBackendBuilder
  43. def withDefaultSocketKeepAlive: Self
    Definition Classes
    BlazeBackendBuilder
  44. def withDefaultSocketReceiveBufferSize: Self
    Definition Classes
    BlazeBackendBuilder
  45. def withDefaultSocketReuseAddress: Self
    Definition Classes
    BlazeBackendBuilder
  46. def withDefaultSocketSendBufferSize: Self
    Definition Classes
    BlazeBackendBuilder
  47. def withDefaultTcpNoDelay: Self
    Definition Classes
    BlazeBackendBuilder
  48. def withExecutionContext(executionContext: ExecutionContext): BlazeServerBuilder[F]

    Configures the compute thread pool used to process some async computations.

    Configures the compute thread pool used to process some async computations.

    This defaults to cats.effect.Async[F].executionContext. In almost all cases, it is desirable to use the default.

    The Blaze server has a single-threaded event loop receiver used for picking up tcp connections which is completely separate to this pool. Following picking up a tcp connection, Blaze shifts to a compute pool to process requests. The request processing logic specified by the HttpApp is executed on the cats.effect.Async[F].executionContext. Some of the other async computations involved in request processing are executed on this pool.

  49. def withHttpApp(httpApp: HttpApp[F]): Self
  50. def withHttpWebSocketApp(f: (WebSocketBuilder2[F]) => HttpApp[F]): Self
  51. def withIdleTimeout(idleTimeout: Duration): Self
  52. def withLengthLimits(maxRequestLineLen: Int = maxRequestLineLen, maxHeadersLen: Int = maxHeadersLen): Self

    Configure HTTP parser length limits

    Configure HTTP parser length limits

    These are to avoid denial of service attacks due to, for example, an infinite request line.

    maxRequestLineLen

    maximum request line to parse

    maxHeadersLen

    maximum data that compose headers

  53. def withMaxConnections(maxConnections: Int): BlazeServerBuilder[F]
  54. def withMaxHeadersLength(maxHeadersLength: Int): BlazeServerBuilder[F]
  55. def withMaxRequestLineLength(maxRequestLineLength: Int): BlazeServerBuilder[F]
  56. def withMaxWebSocketBufferSize(maxWebSocketBufferSize: Option[Int]): BlazeServerBuilder[F]
  57. def withResponseHeaderTimeout(responseHeaderTimeout: Duration): Self
  58. def withSelectorThreadFactory(selectorThreadFactory: ThreadFactory): Self
  59. def withServiceErrorHandler(serviceErrorHandler: ServiceErrorHandler[F]): Self
    Definition Classes
    BlazeServerBuilder → ServerBuilder
  60. def withSocketKeepAlive(socketKeepAlive: Boolean): Self
    Definition Classes
    BlazeBackendBuilder
  61. def withSocketReceiveBufferSize(socketReceiveBufferSize: Int): Self
    Definition Classes
    BlazeBackendBuilder
  62. def withSocketReuseAddress(socketReuseAddress: Boolean): Self
    Definition Classes
    BlazeBackendBuilder
  63. def withSocketSendBufferSize(socketSendBufferSize: Int): Self
    Definition Classes
    BlazeBackendBuilder
  64. def withSslContext(sslContext: SSLContext): Self

    Configures the server with TLS, using the provided SSLContext and its default SSLParameters

  65. def withSslContextAndParameters(sslContext: SSLContext, sslParameters: SSLParameters): Self

    Configures the server with TLS, using the provided SSLContext and SSLParameters.

  66. def withTcpNoDelay(tcpNoDelay: Boolean): Self
    Definition Classes
    BlazeBackendBuilder
  67. final def withoutBanner: Self
    Definition Classes
    ServerBuilder
  68. def withoutSsl: Self

Deprecated Value Members

  1. def allocated: F[(Server, F[Unit])]
    Definition Classes
    BackendBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 0.23.14) Use manually called '.resource.allocated' instead. Will be removed from public API in 1.0.

  2. def enableHttp2(enabled: Boolean): Self
    Annotations
    @deprecated
    Deprecated

    (Since version 0.23.18) HTTP/2 support is unmaintained and will be removed in a future version.

  3. def withSSL(keyStore: StoreInfo, keyManagerPassword: String, protocol: String = "TLS", trustStore: Option[StoreInfo] = None, clientAuth: SSLClientAuthMode = SSLClientAuthMode.NotRequested): Self
    Annotations
    @deprecated
    Deprecated

    (Since version 0.21.0-RC3) Build an SSLContext from the first four parameters and use withSslContext (note lowercase). To also request client certificates, use withSslContextAndParameters, calling either .setWantClientAuth(true) or setNeedClientAuth(true) on the SSLParameters.

  4. def withSSLContext(sslContext: SSLContext, clientAuth: SSLClientAuthMode = SSLClientAuthMode.NotRequested): Self
    Annotations
    @deprecated
    Deprecated

    (Since version 0.21.0-RC3) Use withSslContext (note lowercase). To request client certificates, use withSslContextAndParameters, calling either .setWantClientAuth(true) or setNeedClientAuth(true) on the SSLParameters.

  5. def withWebSockets(enableWebsockets: Boolean): Self
    Annotations
    @deprecated
    Deprecated

    (Since version 0.23) This operation is a no-op. WebSockets are always enabled.

Inherited from BlazeBackendBuilder[Server]

Inherited from ServerBuilder[F]

Inherited from BackendBuilder[F, Server]

Inherited from AnyRef

Inherited from Any

Ungrouped