def getresponse(self): response = HTTPConnection.getresponse(self) logging.debug('HTTP %s %s:%s %s', self._method, self.host, self.port, self._path) return response
def connect(self): r = HTTPConnection.connect(self) self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) return r
def putrequest(self, method, url, skip_host=0, skip_accept_encoding=0): self._method = method self._path = url return HTTPConnection.putrequest(self, method, url, skip_host, skip_accept_encoding)
def connect(self): conn = HTTPConnection.connect(self) self.set_nodelay(True) return conn