org.http4s.server

Members list

Packages

Helpers for serving static content from http4s

Helpers for serving static content from http4s

Note that these tools are relatively primitive and a dedicated server should be used for serious static content serving.

Attributes

Type members

Classlikes

Attributes

Source
package.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
ContextMiddleware.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object ContextRouter

Attributes

Source
ContextRouter.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object Router

Attributes

Source
Router.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Router.type
sealed trait SSLClientAuthMode extends Product, Serializable

Client Auth mode for mTLS

Client Auth mode for mTLS

Attributes

Companion
object
Source
SSLClientAuthMode.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object NotRequested.type
object Requested.type
object Required.type

Attributes

Companion
trait
Source
SSLClientAuthMode.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Source
ServerBuilder.scala
Supertypes
class Object
trait Matchable
class Any
Self type
final case class SecureSession(sslSessionId: String, cipherSuite: String, keySize: Int, X509Certificate: List[X509Certificate])

Attributes

Companion
object
Source
SecureSession.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object SecureSession

Attributes

Companion
class
Source
SecureSession.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
abstract class Server

Attributes

Source
Server.scala
Supertypes
class Object
trait Matchable
class Any
trait ServerBuilder[F[_]]

Attributes

Source
ServerBuilder.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
package.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object defaults

Attributes

Source
package.scala
Supertypes
class Object
trait Matchable
class Any
Self type
defaults.type

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.

Attributes

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.

Attributes

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.

Attributes

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

Attributes

Source
package.scala

Attributes

Source
package.scala

Value members

Concrete methods

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

Attributes

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

Attributes

Source
package.scala