parameters: (self, code, message=None)
docstring: Send the response header only.
docstring_summary: Send the response header only.
docstring_tokens: Send the response header only .
function: def send_response_only(self, code, message=None):
          """Send the response header only."""
          if self.request_version != 'HTTP/0.9':
              if message is None:
                  if code in self.responses:
                      message = self.responses[code][0]
                  else:
                      message = ''
              if not hasattr(self, '_headers_buffer'):
                  self._headers_buffer = []
              self._headers_buffer.append(("%s %d %s\r\n" %
                      (self.protocol_version, code, message)).encode(
                          'latin-1', 'strict'))
function_tokens: def send_response_only ( self , code , message = None ) : if self . request_version != 'HTTP/0.9' : if message is None : if code in self . responses : message = self . responses [ code ] [ 0 ] else : message = '' if not hasattr ( self , '_headers_buffer' ) : self . _headers_buffer = [ ] self . _headers_buffer . append ( ( "%s %d %s\r\n" % ( self . protocol_version , code , message ) ) . encode ( 'latin-1' , 'strict' ) )