'Encode the common request envelope'

@classmethod
def _encode_message_header(cls, client_id, correlation_id, request_key, version=0):

    return struct.pack(('>hhih%ds' % len(client_id)), request_key, version, correlation_id, len(client_id), client_id)
