private function prettifyHeaders(array $headers)
    {
        return array_reduce(
            array_filter($headers),
            function ($result, $header) {

                if (false === strpos($header, ':')) {
                    $result['Status'] = trim($header);

                    return $result;
                }

                list($key, $value) = explode(':', $header, 2);
                $result[trim($key)] = trim($value);

                return $result;
            },
            []
        );
    }
private function prettifyHeaders(array $headers)
    {
        return array_reduce(
            array_filter($headers),
            function ($result, $header) {

                if (false === strpos($header, ':')) {
                    $result['Status'] = trim($header);

                    return $result;
                }

                list($key, $value) = explode(':', $header, 2);
                $result[trim($key)] = trim($value);

                return $result;
            },
            []
        );
    }
private function prettifyHeaders ( array $ headers ) { return array_reduce ( array_filter ( $ headers ) , function ( $ result , $ header ) { if ( false === strpos ( $ header , ':' ) ) { $ result [ 'Status' ] = trim ( $ header ) ; return $ result ; } list ( $ key , $ value ) = explode ( ':' , $ header , 2 ) ; $ result [ trim ( $ key ) ] = trim ( $ value ) ; return $ result ; } , [ ] ) ; }
Returns response headers as associative array

@param array $headers

@return array
Returns response headers as associative array