(filename, contents)
return response
returns a ``ControllerResponse`` object with an attachment
returns a ``ControllerResponse`` object with an attachment
returns a ControllerResponse object with an attachment
def send_file(filename, contents):
    """
    returns a ``ControllerResponse`` object with an attachment
    """
    response = ControllerResponse(contents, content_type='application/octet-stream')
    response['Content-Disposition'] = 'attachment; filename={0}'.format(filename)
    return response
def send_file ( filename , contents ) : response = ControllerResponse ( contents , content_type = 'application/octet-stream' ) response [ 'Content-Disposition' ] = 'attachment; filename={0}' . format ( filename ) return response