@staticmethod
def _get_message_from_stream(stream):
    """
        make the request and return the body

        :param stream: the stream
        :type method: request
        :returns: the message
        :rtype: dictionary
        """
    message = b''
    for char in stream.iter_content():
        if char == b'\n':
            yield message.decode('unicode_escape')
            message = b''
        else:
            message += char
