title: How to implement and use HTTP/2 in Node.js
body: <p>I have a node.js app. I was using http for creating server as shown below:</p>
  
  <p>... </p>
  
  <pre><code>   var http=require('http');
  
     var server=http.createServer(app);
  </code></pre>
  
  <p>...</p>
  
  <p>And this works perfectly. </p>
  
  <p>Then I implemented http/2 module from npm as shown below :</p>
  
  <pre><code>npm install http2
  </code></pre>
  
  <p>And I have the package now. Then I changed my code as:</p>
  
  <pre><code>var http2 = require('http2') ;
  var server= http2.createServer(app);
  </code></pre>
  
  <p>But this doesn't work. I get "could not get any response" error from postman. 
  Why doesn't it work and how can I fix it and use http2? </p>
  
  <p><strong>EDIT</strong> : I found HTTP/2 documentation. You can see how you can implement HTTP/2, what you should do for server side, what you should do for client side and other informations about http2 in this document. Also I found out that to check http2 with browsers, you need to generate the certificate and key in this document. <strong>The document:</strong></p>
  
  <p><a href="https://nodejs.org/api/http2.html#http2_server_side_example" rel="nofollow noreferrer">https://nodejs.org/api/http2.html#http2_server_side_example</a></p>