salvia-1.0.0: Modular web application framework.

Network.Salvia.Handler.Head

Synopsis

Documentation

hHead :: (MonadIO m, QueueM m, HttpM Request m) => m a -> m aSource

The hHead handler makes sure no HTTP Response body is sent to the client when the request is an HTTP HEAD request. In the case of a HEAD request the specified sub handler will be executed under the assumption that the request was a GET request, otherwise this handler will act as the identify function.