Skip to content

Kirby 4.4.1

$request->is()

Checks if the given method name matches the name of the request method.

$request->is(string $method): bool

Parameters

Name Type Default
$method * string

Return type

bool

Parent class

Kirby\Http\Request