def send_upgrade_response(connection):
    """
    This function writes the 101 Switching Protocols response.
    """
    response = b'HTTP/1.1 101 Switching Protocols\r\nUpgrade: h2c\r\n\r\n'
    connection.sendall(response)
