parameters: (filename, contents)
return_statement: return response
docstring: returns a ``ControllerResponse`` object with an attachment
docstring_summary: returns a ``ControllerResponse`` object with an attachment
docstring_tokens: returns a ControllerResponse object with an attachment
function: 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
function_tokens: def send_file ( filename , contents ) : response = ControllerResponse ( contents , content_type = 'application/octet-stream' ) response [ 'Content-Disposition' ] = 'attachment; filename={0}' . format ( filename ) return response