Example #1
0
 def getresponse(self):
     response = HTTPConnection.getresponse(self)
     logging.debug('HTTP %s %s:%s %s', self._method, self.host, self.port,
                   self._path)
     return response
Example #2
0
 def connect(self):
     r = HTTPConnection.connect(self)
     self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
     return r
Example #3
0
 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)
Example #4
0
 def connect(self):
     conn = HTTPConnection.connect(self)
     self.set_nodelay(True)
     return conn