改名
This commit is contained in:
@@ -23,7 +23,10 @@ class Request implements RequestInterface
|
||||
public string $method;
|
||||
|
||||
|
||||
public UriInterface $uri;
|
||||
/**
|
||||
* @var Uri
|
||||
*/
|
||||
private Uri $uri;
|
||||
|
||||
|
||||
private \Swoole\Http\Request $serverRequest;
|
||||
@@ -152,6 +155,16 @@ class Request implements RequestInterface
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $method
|
||||
* @return bool
|
||||
*/
|
||||
public function isMethod(string $method): bool
|
||||
{
|
||||
return $this->method === $method;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $method
|
||||
* @return RequestInterface
|
||||
|
||||
Reference in New Issue
Block a user