改名
This commit is contained in:
@@ -49,6 +49,9 @@ abstract class ClientAbstracts implements IClient
|
||||
|
||||
|
||||
|
||||
private array $_responseHeader = [];
|
||||
|
||||
|
||||
private int $statusCode = 200;
|
||||
|
||||
|
||||
@@ -63,6 +66,9 @@ abstract class ClientAbstracts implements IClient
|
||||
private int $connect_timeout = 1;
|
||||
|
||||
|
||||
/**
|
||||
* @var resource|\Swoole\Coroutine\Http\Client
|
||||
*/
|
||||
protected mixed $client;
|
||||
|
||||
|
||||
@@ -75,6 +81,24 @@ abstract class ClientAbstracts implements IClient
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getResponseHeader(): array
|
||||
{
|
||||
return $this->_responseHeader;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param array $responseHeader
|
||||
*/
|
||||
public function setResponseHeader(array $responseHeader): void
|
||||
{
|
||||
$this->_responseHeader = $responseHeader;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param int $statusCode
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user