(self, code, message=None)
Add the response header to the headers buffer and log the
        response code.

        Also send two standard headers with the server software
        version and the current date.
Add the response header to the headers buffer and log the
        response code.
Add the response header to the headers buffer and log the response code .
def send_response(self, code, message=None):
        """Add the response header to the headers buffer and log the
        response code.

        Also send two standard headers with the server software
        version and the current date.

        """
        self.log_request(code)
        self.send_response_only(code, message)
        self.send_header('Server', self.version_string())
        self.send_header('Date', self.date_time_string())
def send_response ( self , code , message = None ) : self . log_request ( code ) self . send_response_only ( code , message ) self . send_header ( 'Server' , self . version_string ( ) ) self . send_header ( 'Date' , self . date_time_string ( ) )