def send_wsgi_response(status, headers, content, start_response,<EOL>cors_handler=None):
if cors_handler:<EOL><INDENT>cors_handler.update_headers(headers)<EOL><DEDENT>content_len = len(content) if content else <NUM_LIT:0><EOL>headers = [(header, value) for header, value in headers<EOL>if header.lower() != '<STR_LIT>']<EOL>headers.append(('<STR_LIT>', '<STR_LIT:%s>' % content_len))<EOL>start_response(status, headers)<EOL>return content<EOL>
Dump reformatted response to CGI start_response.

    This calls start_response and returns the response body.

    Args:
      status: A string containing the HTTP status code to send.
      headers: A list of (header, value) tuples, the headers to send in the
        response.
      content: A string containing the body content to write.
      start_response: A function with semantics defined in PEP-333.
      cors_handler: A handler to process CORS request headers and update the
        headers in the response.  Or this can be None, to bypass CORS checks.

    Returns:
      A string containing the response body.