| 1703 | |
| 1704 | |
| 1705 | class HTTPResponse(Response, BottleException): |
| 1706 | def __init__(self, body='', status=None, headers=None, **more_headers): |
| 1707 | super(HTTPResponse, self).__init__(body, status, headers, **more_headers) |
| 1708 | |
| 1709 | def apply(self, response): |
| 1710 | response._status_code = self._status_code |
| 1711 | response._status_line = self._status_line |
| 1712 | response._headers = self._headers |
| 1713 | response._cookies = self._cookies |
| 1714 | response.body = self.body |
| 1715 | |
| 1716 | |
| 1717 | class HTTPError(HTTPResponse): |
no outgoing calls
no test coverage detected