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.

package

Default

Methods

__construct

__construct() 

Create a handler with defaults

create( $arg0 = null,  $arg1 = null) : \io\vertx\jphp\ext\web\handler\FaviconHandler
static

create()

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

param $path [string] the path create($path)

Create a handler with the specified max cache time

param $maxAgeSeconds [integer] max how long the file will be cached by browser, in seconds create($maxAgeSeconds)

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

param $path [string] the path param $maxAgeSeconds [integer] max how long the file will be cached by browser, in seconds create($path, $maxAgeSeconds)

Arguments

$arg0

string | integer

$arg1

integer

Response

\io\vertx\jphp\ext\web\handler\FaviconHandler

the handler

Something has happened, so handle it.

handle( $arg0) : void

Arguments

$arg0

RoutingContext

Constants

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

DEFAULT_MAX_AGE_SECONDS
var

php文件只是为了写代码方便,常量的实际值请参考原java文件