我们从Python开源项目中,提取了以下50个代码示例,用于说明如何使用http.server.HTTPServer.handle_error()。
def handle_error(self, request, client_address): if self.passthrough_errors: raise return HTTPServer.handle_error(self, request, client_address)
def handle_error(self, request, client_address): if self.passthrough_errors: raise else: return HTTPServer.handle_error(self, request, client_address)