Packages

p

org.http4s

server

package server

Source
package.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. server
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait AsyncTimeoutSupport[F[_]] extends AnyRef
  2. type AuthMiddleware[F[_], T] = (Kleisli[[β$1$]OptionT[F, β$1$], AuthedRequest[F, T], Response[F]]) ⇒ Kleisli[[β$1$]OptionT[F, β$1$], Request[F], Response[F]]

    An HTTP middleware that authenticates users.

  3. type HttpMiddleware[F[_]] = (Kleisli[[β$0$]OptionT[F, β$0$], Request[F], Response[F]]) ⇒ Kleisli[[β$0$]OptionT[F, β$0$], Request[F], Response[F]]

    An HTTP middleware converts an HttpService to another.

  4. trait IdleTimeoutSupport[F[_]] extends AnyRef
  5. final case class KeyStoreBits(keyStore: StoreInfo, keyManagerPassword: String, protocol: String, trustStore: Option[StoreInfo], clientAuth: Boolean) extends SSLConfig with Product with Serializable
  6. type Middleware[F[_], A, B, C, D] = (Kleisli[F, A, B]) ⇒ Kleisli[F, C, D]

    A middleware is a function of one Service to another, possibly of a different Request and Response type.

    A middleware is a function of one Service to another, possibly of a different Request and Response type. http4s comes with several middlewares for composing common functionality into services.

  7. sealed trait SSLConfig extends AnyRef
  8. final case class SSLContextBits(sslContext: SSLContext, clientAuth: Boolean) extends SSLConfig with Product with Serializable
  9. trait SSLContextSupport[F[_]] extends AnyRef
  10. trait SSLKeyStoreSupport[F[_]] extends AnyRef
  11. abstract class Server[F[_]] extends AnyRef
  12. trait ServerBuilder[F[_]] extends AnyRef
  13. final case class ServerSoftware(product: String, productVersion: Option[String] = None, comment: Option[String] = None) extends Product with Serializable
  14. type ServiceErrorHandler[F[_]] = (Request[F]) ⇒ PartialFunction[Throwable, F[Response[F]]]
  15. trait WebSocketSupport[F[_]] extends AnyRef
  16. type SSLBits = SSLConfig

    Old name for SSLConfig

    Old name for SSLConfig

    Annotations
    @deprecated
    Deprecated

    (Since version 2016-12-31) Use SSLConfig

  17. trait ServerApp[F[_]] extends StreamApp[F]

    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.

    More robust resource management is possible through ProcessApp or StreamApp, which are introduced in http4s-0.16 and http4s-0.17, respectively.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.16) Prefer org.http4s.util.StreamApp, where main returns a Stream. You can return a Stream that runs forever from a ServerBuilder with .serve. Use Stream.bracket to compose resources in a simpler way than overriding shutdown.

Value Members

  1. def DefaultServiceErrorHandler[F[_]](implicit F: Monad[F]): ServiceErrorHandler[F]
  2. object AsyncTimeoutSupport
  3. object AuthMiddleware
  4. object IdleTimeoutSupport
  5. object Middleware
  6. object Router
  7. object SSLKeyStoreSupport
  8. object ServerBuilder
  9. object ServerSoftware extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped