Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FaviconHandler

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.

Hierarchy

  • FaviconHandler

Implements

Index

Properties

Static Readonly DEFAULT_MAX_AGE_SECONDS

DEFAULT_MAX_AGE_SECONDS: number

The default max age in seconds as set in the cache-control header

Methods

handle

Static create

  • Create a handler with defaults

    Parameters

    • vertx: Vertx

    Returns FaviconHandler

  • Create a handler attempting to load favicon file from the specified path

    Parameters

    • vertx: Vertx
    • path: string

    Returns FaviconHandler

  • Create a handler attempting to load favicon file from the specified path, and with the specified max cache time

    Parameters

    • vertx: Vertx
    • path: string
    • maxAgeSeconds: number

    Returns FaviconHandler

  • Create a handler with the specified max cache time

    Parameters

    • vertx: Vertx
    • maxAgeSeconds: number

    Returns FaviconHandler

Generated using TypeDoc