def copy(self, cls=None):
        cls = cls or BaseResponse
        assert issubclass(cls, BaseResponse)
        copy = cls()
        copy.status = self.status
        copy._headers = dict((k, v[:]) for (k, v) in self._headers.items())
        if self._cookies:
            copy._cookies = SimpleCookie()
            copy._cookies.load(self._cookies.output(header=''))
        return copy
Returns a copy of self.
dataset/ETHPy150Open Arelle/Arelle/arelle/webserver/bottle.py/BaseResponse.copy