private function processHeaders($headerContent)
    {
        $headers = array();

        foreach (explode("\r\n", $headerContent) as $i => $line) {
            if ($i === 0) {
                $headers['http_code'] = $line;
                continue;
            }

            list($key, $value) = explode(':', $line);
            $headers[$key] = $value;
        }

        return $headers;
    }
private function processHeaders($headerContent)
    {
        $headers = array();

        foreach (explode("\r\n", $headerContent) as $i => $line) {
            if ($i === 0) {
                $headers['http_code'] = $line;
                continue;
            }

            list($key, $value) = explode(':', $line);
            $headers[$key] = $value;
        }

        return $headers;
    }
private function processHeaders ( $ headerContent ) { $ headers = array ( ) ; foreach ( explode ( "\r\n" , $ headerContent ) as $ i => $ line ) { if ( $ i === 0 ) { $ headers [ 'http_code' ] = $ line ; continue ; } list ( $ key , $ value ) = explode ( ':' , $ line ) ; $ headers [ $ key ] = $ value ; } return $ headers ; }
Read and process response header content.

@param array

@return array
Read and process response header content .