FaviconPlugin

class FaviconPlugin(response: suspend ApplicationCall.() -> Unit) : KwebPlugin(source)

A Kweb plugin that adds a favicon.ico route to the Ktor server. Note that the Kweb constructor will automatically add FaviconPlugin.notFound() to the list of plugins if no favicon plugin is provided.

Constructors

Link copied to clipboard
constructor(response: suspend ApplicationCall.() -> Unit)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun appServerConfigurator(routeHandler: Routing)

Override this to add routes via KTor

Link copied to clipboard
open fun decorate(doc: Document)

Override this to make changes to the initial HTML document

Link copied to clipboard
open fun elementCreationHook(element: Element)

Override this to execute code when a new element is created

Link copied to clipboard

Override this to provide JavaScript to be executed after page creation