改名
This commit is contained in:
@@ -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 string $path
|
||||||
* @param array $params
|
* @param array $params
|
||||||
|
|||||||
@@ -207,4 +207,9 @@ interface IClient
|
|||||||
public function setConnectTimeout(int $connect_timeout);
|
public function setConnectTimeout(int $connect_timeout);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $contentType
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function setContentType(string $contentType);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user