Opera Unite

index.html
<!DOCTYPE HTML>
<html>
<head>
  <title>Sample Service</title>
  <script type="text/javascript">
    window.onload = function () {
      opera.io.webserver.addEventListener('_index', helloHandler, false);
    }

    function helloHandler(event) {
      var response = event.connection.response;
      response.write([
        '<!DOCTYPE HTML>',
        '<html><head><title>Hello Opera</title></head>',
        '<body><h1>Hello Opera!</h1></body></html>'].join('\n'));
      response.close();
    }
  </script>
</head>
</html>