public function setMethod(string $method): Request
    {
        $this->method = null;
        $this->server->set('REQUEST_METHOD', $method);

        return $this;
    }
public function setMethod(string $method): Request
    {
        $this->method = null;
        $this->server->set('REQUEST_METHOD', $method);

        return $this;
    }
public function setMethod ( string $ method ) : Request { $ this -> method = null ; $ this -> server -> set ( 'REQUEST_METHOD' , $ method ) ; return $ this ; }
Sets the request method.

@param string $method

@return \Valkyrja\Http\Request
Sets the request method .