DefaultHead

object DefaultHead

Handles HEAD requests as a GET without a body.

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.

class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[F[_], G[_]](http: Http[F, G])(`evidence$1`: Functor[F], `evidence$2`: Concurrent[G], F: MonoidK[F]): Http[F, G]
def httpRoutes[F[_]](httpRoutes: HttpRoutes[F])(`evidence$3`: Concurrent[F]): HttpRoutes[F]