Aviat\Director\RouteConfig::head
Add a route matching a HEAD HTTP request
Signature
public function head(string
$name,
string
$path,
array|callable
$callback,
[array
$options = ] )
Parameters
$name
—
string
- - The name of the route
$path
—
string
- - The path or pattern to match
$callback
—
object
- - The callback to dispatch on match
$options
—
array
- - additional route options, such as placeholders
Returns
- RouteConfig
Test Coverage
Information
- Coverage: 1/1 Lines (100%)
- Tests: 2
- Passed: 2 (100%)
Tests
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #2
- [ PASSED ] — RouteConfigTest::testGetPostPutPatchOptionsDeleteAll with data set #3