| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent dbb9c37 commit 1e7ddb2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,6 +39,12 @@ server.on('stream', (stream, headers) => { | |||
| 39 | 39 | server.listen(80); | |
| 40 | 40 | ``` | |
| 41 | 41 | ||
| 42 | + Note that the above example is an HTTP/2 server that does not support SSL. | ||
| 43 | + This is significant as most browsers support HTTP/2 only with SSL. | ||
| 44 | + To make the above server be able to serve content to browsers, | ||
| 45 | + replace `http2.createServer()` with | ||
| 46 | + `http2.createSecureServer({key: /* your SSL key */, cert: /* your SSL cert */})`. | ||
| 47 | + | ||
| 42 | 48 | The following illustrates an HTTP/2 client: | |
| 43 | 49 | ||
| 44 | 50 | ```js | |
| Back | FazBrowse Home | New Git URL |
0 commit comments