'Closes associated resources of this request object.  This
closes all file handles explicitly.  You can also use the request
object in a with statement which will automatically close it.
.. versionadded:: 0.9'

def close(self):

    files = self.__dict__.get('files')
    for (key, value) in iter_multi_items((files or ())):
        value.close()
