src/Web/RequestHelper.php
public function getMethod()
    {
        if (!isset($this->_method)) {
            /** @var string $methodHeader */
            $methodHeader = $this->getHeaders()->get('X-Http-Method-Override');
            $reactMethod = strtoupper($this->reactRequest->getMethod());
            $reactBody = (array)$this->reactRequest->getParsedBody();
            if ($reactMethod === 'POST' && isset($reactBody[$this->methodParam])) {
                $this->_method = strtoupper($reactBody[$this->methodParam]);
            } elseif ($this->getHeaders()->has('X-Http-Method-Override')) {
                $this->_method = $methodHeader;
            } elseif ($reactMethod) {
                $this->_method = $reactMethod;
            } else {
                $this->_method = 'GET';
            }
        }
        return $this->_method;
    }
public function getMethod()
    {
        if (!isset($this->_method)) {
            /** @var string $methodHeader */
            $methodHeader = $this->getHeaders()->get('X-Http-Method-Override');
            $reactMethod = strtoupper($this->reactRequest->getMethod());
            $reactBody = (array)$this->reactRequest->getParsedBody();
            if ($reactMethod === 'POST' && isset($reactBody[$this->methodParam])) {
                $this->_method = strtoupper($reactBody[$this->methodParam]);
            } elseif ($this->getHeaders()->has('X-Http-Method-Override')) {
                $this->_method = $methodHeader;
            } elseif ($reactMethod) {
                $this->_method = $reactMethod;
            } else {
                $this->_method = 'GET';
            }
        }
        return $this->_method;
    }
Returns the method of the current request (e.g. GET, POST, HEAD, PUT, PATCH, DELETE).
@return string request method, such as GET, POST, HEAD, PUT, PATCH, DELETE.
The value returned is turned into upper case.