parameters: (self, status, headers, body)
docstring: Send response to HTTP request.
docstring_summary: Send response to HTTP request.
docstring_tokens: Send response to HTTP request .
function: def send_response(self, status, headers, body):
          """Send response to HTTP request."""
          req = self.req
  
          # Set response status
          req.status = status or b'500 Server Error'
  
          # Set response headers
          for header, value in headers:
              req.outheaders.append((header, value))
          if (req.ready and not req.sent_headers):
              req.sent_headers = True
              req.send_headers()
  
          # Set response body
          for seg in body:
              req.write(seg)
function_tokens: def send_response ( self , status , headers , body ) : req = self . req # Set response status req . status = status or b'500 Server Error' # Set response headers for header , value in headers : req . outheaders . append ( ( header , value ) ) if ( req . ready and not req . sent_headers ) : req . sent_headers = True req . send_headers ( ) # Set response body for seg in body : req . write ( seg )