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
Source:
SSLClientAuthMode.scala
final case class SecureSession(sslSessionId: String, cipherSuite: String, keySize: Int, X509Certificate: List[X509Certificate])
Companion:
object
Source:
SecureSession.scala
abstract class Server
object defaults

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.

Source:
package.scala
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.

Source:
package.scala
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.

Source:
package.scala
type Middleware[F[_], A, B, C, D] = Kleisli[F, A, B] => Kleisli[F, C, D]

A middleware is a function of one cats.data.Kleisli 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 cats.data.Kleisli to another, possibly of a different Request and Response type. http4s comes with several middlewares for composing common functionality into services.

Type parameters:
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

Source:
package.scala

Value members

Concrete methods

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