This commit is contained in:
2021-05-06 15:14:13 +08:00
parent 96b8a35e2b
commit b517e7e6a2
3 changed files with 35 additions and 16 deletions
+9
View File
@@ -676,6 +676,15 @@ abstract class ClientAbstracts extends Component implements IClient
return strtolower($this->method) === self::POST;
}
/**
* @return bool
* check isPost Request
*/
#[Pure] public function isUpload(): bool
{
return strtolower($this->method) === self::UPLOAD;
}
/**
* @return bool