EmberServerBuilder

org.http4s.ember.server.EmberServerBuilder
See theEmberServerBuilder companion object
final class EmberServerBuilder[F[_]]

Attributes

Companion
object
Source
EmberServerBuilder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def build: Resource[F, Server]

Attributes

Source
EmberServerBuilder.scala
def withAdditionalSocketOptions(additionalSocketOptions: List[SocketOption]): EmberServerBuilder[F]

Attributes

Source
EmberServerBuilder.scala
def withConnectionErrorHandler(errorHandler: PartialFunction[Throwable, F[Unit]]): EmberServerBuilder[F]

Called when an error occurs while attempting to read a connection.

Called when an error occurs while attempting to read a connection.

For example on JVM javax.net.ssl.SSLException may be thrown if the client doesn't speak SSL.

If the scala.PartialFunction does not match the error is just logged.

Attributes

Source
EmberServerBuilder.scala
def withErrorHandler(errorHandler: PartialFunction[Throwable, F[Response[F]]]): EmberServerBuilder[F]

Attributes

Source
EmberServerBuilder.scala

Attributes

Source
EmberServerBuilder.scala
def withHostOption(host: Option[Host]): EmberServerBuilder[F]

Attributes

Source
EmberServerBuilder.scala
def withHttpApp(httpApp: HttpApp[F]): EmberServerBuilder[F]

Attributes

Source
EmberServerBuilder.scala
def withIdleTimeout(idleTimeout: Duration): EmberServerBuilder[F]

Attributes

Source
EmberServerBuilder.scala
def withMaxConnections(maxConnections: Int): EmberServerBuilder[F]

Attributes

Source
EmberServerBuilder.scala
def withMaxHeaderSize(maxHeaderSize: Int): EmberServerBuilder[F]

Attributes

Source
EmberServerBuilder.scala
def withOnWriteFailure(onWriteFailure: (Option[Request[F]], Response[F], Throwable) => F[Unit]): EmberServerBuilder[F]

Attributes

Source
EmberServerBuilder.scala

Attributes

Source
EmberServerBuilder.scala
def withReceiveBufferSize(receiveBufferSize: Int): EmberServerBuilder[F]

Attributes

Source
EmberServerBuilder.scala
def withRequestHeaderReceiveTimeout(requestHeaderReceiveTimeout: Duration): EmberServerBuilder[F]

Attributes

Source
EmberServerBuilder.scala
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). This is the first line of the request, e.g. "GET / HTTP/1.1".

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.

Attributes

See also
Source
EmberServerBuilder.scala
def withShutdownTimeout(shutdownTimeout: Duration): EmberServerBuilder[F]

Attributes

Source
EmberServerBuilder.scala
def withTLS(tlsContext: TLSContext[F], tlsParameters: TLSParameters): EmberServerBuilder[F]

Attributes

Source
EmberServerBuilder.scala
def withUnixSocketConfig(unixSockets: UnixSockets[F], unixSocketAddress: UnixSocketAddress, deleteIfExists: Boolean, deleteOnClose: Boolean): EmberServerBuilder[F]

Attributes

Source
EmberServerBuilder.scala

Deprecated methods

def withMaxConcurrency(maxConcurrency: Int): EmberServerBuilder[F]

Attributes

Deprecated
true
Source
EmberServerBuilder.scala
def withOnError(onError: Throwable => Response[F]): EmberServerBuilder[F]

Attributes

Deprecated
true
Source
EmberServerBuilder.scala

Concrete fields

val host: Option[Host]

Attributes

Source
EmberServerBuilder.scala
val idleTimeout: Duration

Attributes

Source
EmberServerBuilder.scala
val maxConnections: Int

Attributes

Source
EmberServerBuilder.scala
val maxHeaderSize: Int

Attributes

Source
EmberServerBuilder.scala
val port: Port

Attributes

Source
EmberServerBuilder.scala

Attributes

Source
EmberServerBuilder.scala

Attributes

Source
EmberServerBuilder.scala
val shutdownTimeout: Duration

Attributes

Source
EmberServerBuilder.scala

Deprecated fields

val maxConcurrency: Int

Attributes

Deprecated
true
Source
EmberServerBuilder.scala