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 |
---|
__construct()
create( $arg0 = null, $arg1 = null) : \io\vertx\jphp\ext\web\handler\FaviconHandler
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)
string | integer
integer
\io\vertx\jphp\ext\web\handler\FaviconHandler
the handler
handle( $arg0) : void
RoutingContext
DEFAULT_MAX_AGE_SECONDS
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|