vertx / io.vertx.ext.web.handler / FaviconHandler

# FaviconHandler

`interface FaviconHandler : Handler<RoutingContext>`

A handler that serves favicons.

If no file system path is specified it will attempt to serve a resource called `favicon.ico` from the classpath.

Author
Tim Fox

### Properties

DEFAULT_MAX_AGE_SECONDS | `static val DEFAULT_MAX_AGE_SECONDS: Long` The default max age in seconds as set in the cache-control header

### Functions

create | `open static fun create(): FaviconHandler` Create a handler with defaults `open static fun create(path: String): FaviconHandler` Create a handler attempting to load favicon file from the specified path `open static fun create(path: String, maxAgeSeconds: Long): FaviconHandler` Create a handler attempting to load favicon file from the specified path, and with the specified max cache time `open static fun create(maxAgeSeconds: Long): FaviconHandler` Create a handler with the specified max cache time