This commit is contained in:
2020-11-18 14:33:59 +08:00
parent e72174be34
commit 1a990644ff
2 changed files with 14 additions and 0 deletions
+9
View File
@@ -86,6 +86,15 @@ abstract class ClientAbstracts extends Component implements IClient
}
/**
* @param string $contentType
*/
public function setContentType(string $contentType)
{
$this->header['Content-Type'] = $contentType;
}
/**
* @param string $path
* @param array $params