org\upload\driver\Upyun::response PHP Метод

response() приватный Метод

获取响应数据
private response ( string $text ) : array
$text string 响应头字符串
Результат array 响应数据列表
    private function response($text)
    {
        $headers = explode("\r\n", $text);
        $items = [];
        foreach ($headers as $header) {
            $header = trim($header);
            if (strpos($header, 'x-upyun') !== false) {
                list($k, $v) = explode(':', $header);
                $items[trim($k)] = in_array(substr($k, 8, 5), ['width', 'heigh', 'frame']) ? intval($v) : trim($v);
            }
        }
        return $items;
    }