| 7 | if _version in ("0", "1"): |
| 8 | |
| 9 | class _HTTPException(HTTPException): |
| 10 | def __init__(self, code, body, headers, response=None): |
| 11 | super().__init__(None, response) |
| 12 | self.code = code |
| 13 | |
| 14 | self.body = body |
| 15 | self.headers = headers |
| 16 | |
| 17 | def get_body(self, environ=None): |
| 18 | return self.body |
| 19 | |
| 20 | def get_headers(self, environ=None): |
| 21 | return self.headers |
| 22 | else: |
| 23 | |
| 24 | class _HTTPException(HTTPException): |
no outgoing calls
no test coverage detected