vendor/codeages/qiqiuyun-php-sdk/src/HttpClient/Response.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace QiQiuYun\SDK\HttpClient;
class Response
{
/**
* @var array the response headers in the form of an associative array
*/
protected $headers;
/**
* @var string the raw response body
*/
protected $body;
/**
* @var int the HTTP status response code
*/
protected $httpResponseCode;
/**
* Creates a new Response instance.
*
* @param string|array $headers the headers as a raw string or array
* @param string $body the raw response body
* @param int $httpStatusCode the HTTP response code (if sending headers as parsed array)
*/
public function __construct($headers, $body, $httpStatusCode = null)
{
if (is_numeric($httpStatusCode)) {
$this->httpResponseCode = (int) $httpStatusCode;
}
if (is_array($headers)) {
$this->headers = $headers;
} else {
$this->setHeadersFromString($headers);
}
$this->body = $body;
}
/**
* Return the response headers.
*
* @return array
*/
public function getHeaders()
{
return $this->headers;
}
/**
* Return the body of the response.
*
* @return string
*/
public function getBody()
{
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。