use Nette\Http\Request;
/** @inject @var Request */
public $httpRequest;
echo $this->httpRequest->getMethod();

 

Vlastimil Pošmura, 2019