Package io.ktor.server.plugins.autohead

Properties

Link copied to clipboard
val AutoHeadResponse: <ERROR CLASS><Unit>

A plugin that provides the ability to automatically respond to a HEAD request for every route that has a GET defined. You can use AutoHeadResponse to avoid creating a separate head handler if you need to somehow process a response on the client before getting the actual content. You can learn more from AutoHeadResponse.