A handler which sets the response content type automatically according to the best <code>Accept</code> header match.
The header is set only if:
package |
Default |
---|
__construct()
create( $arg0 = null) : \io\vertx\jphp\ext\web\handler\ResponseContentTypeHandler
create()
Create a response content type handler with a custom disable flag.
param $disableFlag [string] create($disableFlag)
string
\io\vertx\jphp\ext\web\handler\ResponseContentTypeHandler
the response content type handler
handle( $arg0) : void
RoutingContext
DEFAULT_DISABLE_FLAG
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|