final class EmberServerBuilder[F[_]] extends AnyRef
- Self Type
- EmberServerBuilder[F]
- Source
- EmberServerBuilder.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- EmberServerBuilder
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
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 additionalSocketOptions: List[SocketOption]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def build: Resource[F, Server]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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 hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val host: Option[Host]
- val idleTimeout: Duration
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val maxConnections: Int
- val maxHeaderSize: Int
- 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()
- val port: Port
- val receiveBufferSize: Int
- val requestHeaderReceiveTimeout: Duration
- val shutdownTimeout: Duration
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- def withAdditionalSocketOptions(additionalSocketOptions: List[SocketOption]): EmberServerBuilder[F]
- def withErrorHandler(errorHandler: PartialFunction[Throwable, F[Response[F]]]): EmberServerBuilder[F]
- def withHost(host: Host): EmberServerBuilder[F]
- def withHostOption(host: Option[Host]): EmberServerBuilder[F]
- def withHttp2: EmberServerBuilder[F]
- def withHttpApp(httpApp: HttpApp[F]): EmberServerBuilder[F]
- def withHttpWebSocketApp(f: (WebSocketBuilder2[F]) => HttpApp[F]): EmberServerBuilder[F]
- def withIdleTimeout(idleTimeout: Duration): EmberServerBuilder[F]
- def withLogger(l: Logger[F]): EmberServerBuilder[F]
- def withMaxConnections(maxConnections: Int): EmberServerBuilder[F]
- def withMaxHeaderSize(maxHeaderSize: Int): EmberServerBuilder[F]
- def withOnWriteFailure(onWriteFailure: (Option[Request[F]], Response[F], Throwable) => F[Unit]): EmberServerBuilder[F]
- def withPort(port: Port): EmberServerBuilder[F]
- def withReceiveBufferSize(receiveBufferSize: Int): EmberServerBuilder[F]
- def withRequestHeaderReceiveTimeout(requestHeaderReceiveTimeout: Duration): EmberServerBuilder[F]
- def withRequestLineParseErrorHandler(requestLineParseErrorHandler: (Throwable) => F[Response[F]]): EmberServerBuilder[F]
An error handler which will run in cases where the server is unable to parse the "start-line" (http 2 name) or "request-line" (http 1.1 name).
An error handler which will run in cases where the server is unable to parse the "start-line" (http 2 name) or "request-line" (http 1.1 name). This is the first line of the request, e.g. "GET / HTTP/1.1".
In this case, RFC 9112 (HTTP 2) says a 400 should be returned.
This handler allows for configuring the behavior. The default as of 0.23.19 is to return a 400.
- def withShutdownTimeout(shutdownTimeout: Duration): EmberServerBuilder[F]
- def withSocketGroup(sg: SocketGroup[F]): EmberServerBuilder[F]
- def withTLS(tlsContext: TLSContext[F], tlsParameters: TLSParameters = TLSParameters.Default): EmberServerBuilder[F]
- def withUnixSocketConfig(unixSockets: UnixSockets[F], unixSocketAddress: UnixSocketAddress, deleteIfExists: Boolean = true, deleteOnClose: Boolean = true): EmberServerBuilder[F]
- def withoutHost: EmberServerBuilder[F]
- def withoutHttp2: EmberServerBuilder[F]
- def withoutTLS: EmberServerBuilder[F]
- def withoutUnixSocketConfig: EmberServerBuilder[F]
Deprecated Value Members
- val maxConcurrency: Int
- Annotations
- @deprecated
- Deprecated
(Since version 0.22.3) Use org.http4s.ember.server.EmberServerBuilder.maxConnections
- def withMaxConcurrency(maxConcurrency: Int): EmberServerBuilder[F]
- Annotations
- @deprecated
- Deprecated
(Since version 0.22.3) Use org.http4s.ember.server.EmberServerBuilder.withMaxConnections
- def withOnError(onError: (Throwable) => Response[F]): EmberServerBuilder[F]
- Annotations
- @deprecated
- Deprecated
(Since version 0.21.17) Use withErrorHandler - Do not allow the F to fail