package server
- Source
- package.scala
- Alphabetic
- By Inheritance
- server
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait AsyncTimeoutSupport extends AnyRef
-
type
AuthMiddleware[T] = (Service[AuthedRequest[T], MaybeResponse]) ⇒ Service[Request, MaybeResponse]
An HTTP middleware that authenticates users.
-
type
HttpMiddleware = (Service[Request, MaybeResponse]) ⇒ Service[Request, MaybeResponse]
An HTTP middleware converts an HttpService to another.
- trait IdleTimeoutSupport extends AnyRef
- final case class KeyStoreBits(keyStore: StoreInfo, keyManagerPassword: String, protocol: String, trustStore: Option[StoreInfo], clientAuth: Boolean) extends SSLConfig with Product with Serializable
-
type
Middleware[A, B, C, D] = (Service[A, B]) ⇒ Service[C, D]
A middleware is a function of one Service to another, possibly of a different Request and Response type.
- sealed trait SSLConfig extends AnyRef
- final case class SSLContextBits(sslContext: SSLContext, clientAuth: Boolean) extends SSLConfig with Product with Serializable
- trait SSLContextSupport extends AnyRef
- trait SSLKeyStoreSupport extends AnyRef
- trait Server extends AnyRef
- trait ServerBuilder extends AnyRef
- final case class ServerSoftware(product: String, productVersion: Option[String] = None, comment: Option[String] = None) extends Product with Serializable
- type ServiceErrorHandler = (Request) ⇒ PartialFunction[Throwable, Task[Response]]
- trait WebSocketSupport extends AnyRef
-
type
SSLBits = SSLConfig
Old name for SSLConfig
Old name for SSLConfig
- Annotations
- @deprecated
- Deprecated
(Since version 2016-12-31) Use SSLConfig
-
trait
ServerApp extends ProcessApp
Starts a server and gracefully terminates at shutdown.
Starts a server and gracefully terminates at shutdown. The server is terminated and the shutdown task is run either by a JVM shutdown hook or an invocation of
requestShutdown()
.More robust resource management is possible through
ProcessApp
orStreamApp
, which are introduced in http4s-0.16 and http4s-0.17, respectively.- Annotations
- @deprecated
- Deprecated
(Since version 0.16) Prefer org.http4s.util.ProcessApp, where main returns a Process. You can return a Process that runs forever from a ServerBuilder with
.serve
. UseProcess.bracket
to compose resources in a simpler way than overridingshutdown
.
Value Members
- val DefaultServiceErrorHandler: ServiceErrorHandler
- object AsyncTimeoutSupport
- object AuthMiddleware
- object IdleTimeoutSupport
- object Middleware
- object Router
- object SSLKeyStoreSupport
- object ServerBuilder
- object ServerSoftware extends Serializable