Gets a buffered generator for streaming files.

    Returns a buffered generator which encodes a file or list of files as
    :mimetype:`multipart/form-data` with the corresponding headers.

    Parameters
    ----------
    files : str
        The file(s) to stream
    chunk_size : int
        Maximum size of each stream chunk

def stream_files(files, chunk_size=default_chunk_size):
    """Gets a buffered generator for streaming files.

    Returns a buffered generator which encodes a file or list of files as
    :mimetype:`multipart/form-data` with the corresponding headers.

    Parameters
    ----------
    files : str
        The file(s) to stream
    chunk_size : int
        Maximum size of each stream chunk
    """
    stream = FileStream(files, chunk_size=chunk_size)

    return stream.body(), stream.headers