title: HTTPS render html files with Node Js
body: <p>I tried to set up a HTTPS server in localhost, however I do not know how to render a html file when the server is running. Below is my code: </p>
  
  <pre><code>var https = require('https'); var fs = require('fs');
  
  var options = {   key: fs.readFileSync('client-key.pem'),   
                   cert: fs.readFileSync('client-cert.pem') };
  
  var a = https.createServer(options, function (req, res) {   
          console.log('Server is starting');           
         res.writeHead(200);                                            
      // res.end("hello world\n");
         res.render('index.html');
  
  }).listen(8000);
  </code></pre>
  
  <p>I can access to the localhost, but whenever I tried to render a html files,I got an error message of '.render() is not a function', what is the alternative to 'call' a html files when the server is running. Any help is appreciated! </p>