public function getRaw(string $name): array
    {
        if (strtolower($name) === 'cache-control') {
            return $this->getCacheControlDirectives();
        }

        if (strtolower($name) === 'set-cookie') {
            $cookies = $this->fields['Set-Cookie'] ?? [];
            foreach ($this->cookies as $cookie) {
                $cookies[] = (string)$cookie;
            }

            return $cookies;
        }
        if (!isset($this->fields[$name])) {
            return [];
        }

        return $this->fields[$name];
    }
public function getRaw(string $name): array
    {
        if (strtolower($name) === 'cache-control') {
            return $this->getCacheControlDirectives();
        }

        if (strtolower($name) === 'set-cookie') {
            $cookies = $this->fields['Set-Cookie'] ?? [];
            foreach ($this->cookies as $cookie) {
                $cookies[] = (string)$cookie;
            }

            return $cookies;
        }
        if (!isset($this->fields[$name])) {
            return [];
        }

        return $this->fields[$name];
    }
public function getRaw ( string $ name ) : array { if ( strtolower ( $ name ) === 'cache-control' ) { return $ this -> getCacheControlDirectives ( ) ; } if ( strtolower ( $ name ) === 'set-cookie' ) { $ cookies = $ this -> fields [ 'Set-Cookie' ] ?? [ ] ; foreach ( $ this -> cookies as $ cookie ) { $ cookies [ ] = ( string ) $ cookie ; } return $ cookies ; } if ( ! isset ( $ this -> fields [ $ name ] ) ) { return [ ] ; } return $ this -> fields [ $ name ] ; }
Get raw header values

@param string $name
@return string[]
Get raw header values