org.http4s.server

Type members

Classlikes

object Router
sealed trait SSLClientAuthMode extends Product with Serializable

Client Auth mode for mTLS

Client Auth mode for mTLS

Companion
object
Companion
class
final case class SecureSession(sslSessionId: String, cipherSuite: String, keySize: Int, X509Certificate: List[X509Certificate])
Companion
object
Companion
class
abstract class Server
trait ServerBuilder[F[_]] extends BackendBuilder[F, Server]
object defaults extends DefaultsPlatform

Types

type AuthMiddleware[F[_], T] = ([_] =>> OptionT[F, _$5], ContextRequest[F, T], Response[F], Request[F]) => Response[F]

An HTTP middleware that authenticates users.

An HTTP middleware that authenticates users.

type ContextMiddleware[F[_], T] = ([_] =>> OptionT[F, _$7], ContextRequest[F, T], Response[F], Request[F]) => Response[F]

An HTTP middleware that adds a context.

An HTTP middleware that adds a context.

type HttpMiddleware[F[_]] = ([_] =>> OptionT[F, _$3], Request[F], Response[F], Request[F]) => Response[F]

An HTTP middleware converts an HttpRoutes to another.

An HTTP middleware converts an HttpRoutes to another.

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. http4s comes with several middlewares for composing common functionality into services.

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.

Type Params
A

the request type of the original service

B

the response type of the original service

C

the request type of the resulting service

D

the response type of the resulting service

F

the effect type of the services

type ServiceErrorHandler[F[_]] = Request[F] => PartialFunction[Throwable, F[Response[F]]]

Value members

Concrete methods

def DefaultServiceErrorHandler[F[_]](implicit F: Monad[F]): Request[F] => PartialFunction[Throwable, F[Response[F]]]
def inDefaultServiceErrorHandler[F[_], G[_]](implicit F: Monad[F]): Request[G] => PartialFunction[Throwable, F[Response[G]]]