(self, host, path, connect=True)
| 11 | port = 12345 |
| 12 | |
| 13 | def __init__(self, host, path, connect=True): |
| 14 | if not hasattr(self, '_map'): |
| 15 | asyncore.dispatcher.__init__(self) |
| 16 | if connect: |
| 17 | self.create_socket(socket.AF_INET, socket.SOCK_STREAM) |
| 18 | self.connect((host, HTTPClient.port)) |
| 19 | self.buffer = 'GET %s HTTP/1.0\r\n\r\n' % path |
| 20 | |
| 21 | def handle_close(self): |
| 22 | global requestCount |
nothing calls this directly
no test coverage detected