MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / HTTPResponse

Class HTTPResponse

21-async/mojifinder/bottle.py:1705–1714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1703
1704
1705class 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
1717class HTTPError(HTTPResponse):

Callers 2

mountpoint_wrapperMethod · 0.85
static_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected