parameters: (self, code, message=None)
docstring: Send the response header and log the response code.
  
          Also send two standard headers with the server software
          version and the current date.
docstring_summary: Send the response header and log the response code.
docstring_tokens: Send the response header and log the response code .
function: def send_response(self, code, message=None):
          """Send the response header and log the response code.
  
          Also send two standard headers with the server software
          version and the current date.
  
          """
          self.log_request(code)
          if message is None:
              if code in self.responses:
                  message = self.responses[code][0]
              else:
                  message = ''
          if self.request_version != 'HTTP/0.9':
              self.wfile.write("%s %d %s\r\n" %
                               (self.protocol_version, code, message))
              # print (self.protocol_version, code, message)
          self.send_header('Server', self.version_string())
          self.send_header('Date', self.date_time_string())
function_tokens: def send_response ( self , code , message = None ) : self . log_request ( code ) if message is None : if code in self . responses : message = self . responses [ code ] [ 0 ] else : message = '' if self . request_version != 'HTTP/0.9' : self . wfile . write ( "%s %d %s\r\n" % ( self . protocol_version , code , message ) ) # print (self.protocol_version, code, message) self . send_header ( 'Server' , self . version_string ( ) ) self . send_header ( 'Date' , self . date_time_string ( ) )