def __init__(self, connection, command, request_id=None, timeout=None, type=None):
        """
            Args:
                connection -- A Connection object to be used for this request.
                command -- The command string for this request.

            Keyword args:
                timeout --
                type -- Type of request processing. Can be 'auto', 'single', 'cluster'. Default is 'auto'.
                request_id -- Optional request id identificator.
        """
        self.connection = connection
        self._command = command

# These fields are for the envelope of the request.
        self.request_id = request_id
        self.timestamp = None   # TODO: implement
        self.timeout = timeout
        self.type = type

        self._content = {}  # This holds all fields that will be included in the content subtree.
        self._nested_content = {}   # TODO: Not needed?
        self._documents = []
def __init__ ( self , connection , command , request_id = None , timeout = None , type = None ) : self . connection = connection self . _command = command self . request_id = request_id self . timestamp = None self . timeout = timeout self . type = type self . _content = { } self . _nested_content = { } self . _documents = [ ]
Args:
                connection -- A Connection object to be used for this request.
                command -- The command string for this request.

            Keyword args:
                timeout --
                type -- Type of request processing. Can be 'auto', 'single', 'cluster'. Default is 'auto'.
                request_id -- Optional request id identificator.