DefaultHead

org.http4s.server.middleware.DefaultHead$

Handles HEAD requests as a GET without a body.

If the service returns the fallthrough response, the request is resubmitted as a GET. The resulting response's body is killed, but all headers are preserved. This is a naive, but correct, implementation of HEAD. Routes requiring more optimization should implement their own HEAD handler.

Attributes

Source:
DefaultHead.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def apply[F[_] : Functor, G[_] : Applicative](http: Http[F, G])(implicit evidence$1: Functor[F], evidence$2: Applicative[G], F: MonoidK[F]): Http[F, G]

Attributes

Source:
DefaultHead.scala

Deprecated methods

def apply[F[_], G[_]](http: Http[F, G], F: Functor[F], G: Concurrent[G], M: MonoidK[F]): Http[F, G]

Attributes

Deprecated
true
Source:
DefaultHead.scala

Attributes

Deprecated
true
Source:
DefaultHead.scala