(self)
return self._version == (1, 1)
return True if the connection should be kept alive
return True if the connection should be kept alive
return True if the connection should be kept alive
def should_keep_alive(self):
        """ return True if the connection should be kept alive
        """
        hconn = self._headers.get('connection', "").lower()
        if hconn == "close":
            return False
        elif hconn == "keep-alive":
            return True
        return self._version == (1, 1)
def should_keep_alive ( self ) : hconn = self . _headers . get ( 'connection' , "" ) . lower ( ) if hconn == "close" : return False elif hconn == "keep-alive" : return True return self . _version == ( 1 , 1 )