head() public méthode

Add a HEAD route
public head ( string $route, mixed $action ) : void
$route string
$action mixed
Résultat void
Exemple #1
0
 public function testHead()
 {
     $this->app->head('/test-head', 'test-handler');
     $this->assertEquals(['method' => 'HEAD', 'route' => '/test-head', 'handler' => 'test-handler'], $this->app->getRouter()->getRoutingTable()[0]);
 }