(self, request, response)
| 596 | handler_order = 1000 # after all other processing |
| 597 | |
| 598 | def http_response(self, request, response): |
| 599 | code, msg, hdrs = response.code, response.msg, response.info() |
| 600 | |
| 601 | # According to RFC 2616, "2xx" code indicates that the client's |
| 602 | # request was successfully received, understood, and accepted. |
| 603 | if not (200 <= code < 300): |
| 604 | response = self.parent.error( |
| 605 | 'http', request, response, code, msg, hdrs) |
| 606 | |
| 607 | return response |
| 608 | |
| 609 | https_response = http_response |
| 610 |