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

Attributes

Source
EmberServerBuilder.scala

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

Attributes

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

Attributes

Source
EmberServerBuilder.scala

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

Attributes

Deprecated
true
Source
EmberServerBuilder.scala

Deprecated fields

Attributes

Deprecated
true
Source
EmberServerBuilder.scala