src/Leevel/Http/Request.php
public function setMethod(string $method): IRequest
    {
        $this->method = null;
        $this->server->set('REQUEST_METHOD', $method);

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

        return $this;
    }
设置请求类型.

@param string $method

@return $this