(self)
| 1810 | class StatusReasonTest(SimpleHandlerTestCase): |
| 1811 | class Handler(RequestHandler): |
| 1812 | def get(self): |
| 1813 | reason = self.request.arguments.get("reason", []) |
| 1814 | raise HTTPError( |
| 1815 | int(self.get_argument("code")), |
| 1816 | reason=to_unicode(reason[0]) if reason else None, |
| 1817 | ) |
| 1818 | |
| 1819 | def get_http_client(self): |
| 1820 | # simple_httpclient only: curl doesn't expose the reason string |
nothing calls this directly
no test coverage detected