(status, *, _RESPONSES=RESPONSES)
| 835 | |
| 836 | @staticmethod |
| 837 | def calc_reason(status, *, _RESPONSES=RESPONSES): |
| 838 | record = _RESPONSES.get(status) |
| 839 | if record is not None: |
| 840 | reason = record[0] |
| 841 | else: |
| 842 | reason = str(status) |
| 843 | return reason |
| 844 | |
| 845 | def __init__(self, transport, status, |
| 846 | http_version=HttpVersion11, close=False, reason=None): |
no test coverage detected