classes/Route.php
public function & via(...$methods){
      $this->methods = [];
      foreach ($methods as $method){
        $this->methods[strtolower($method)] = true;
      }
      return $this;
    }
public function & via(...$methods){
      $this->methods = [];
      foreach ($methods as $method){
        $this->methods[strtolower($method)] = true;
      }
      return $this;
    }
public function & via ( ... $ methods ) { $ this -> methods = [ ] ; foreach ( $ methods as $ method ) { $ this -> methods [ strtolower ( $ method ) ] = true ; } return $ this ; }
Defines the HTTP Methods to bind the route onto.

Example:
<code>
Route::on('/test')->via('get','post','delete');
</code>

@return Route
Defines the HTTP Methods to bind the route onto .