def serve_forever(self, content): self.stop = False self.content = content while not self.stop: self.handle_request()