private function getHeaders(array $headers)
    {
        $str = '';
        foreach ($headers as $key => $value) {
            $str .= sprintf("%s: %s\r\n", $key, $value);
        }

        return $str;
    }
private function getHeaders(array $headers)
    {
        $str = '';
        foreach ($headers as $key => $value) {
            $str .= sprintf("%s: %s\r\n", $key, $value);
        }

        return $str;
    }
private function getHeaders ( array $ headers ) { $ str = '' ; foreach ( $ headers as $ key => $ value ) { $ str .= sprintf ( "%s: %s\r\n" , $ key , $ value ) ; } return $ str ; }
Get the headers formatted for the HTTP message.

@param array $headers

@return string
Get the headers formatted for the HTTP message .