/* Example of looping over all headers (not recommended as production solution, * do NOT use this to "solve" your problems with headers, use ONLY for debugging) */ const uWS = require('../dist/uws.js'); const port = 9001; const app = uWS./*SSL*/App({ key_file_name: 'misc/key.pem', cert_file_name: 'misc/cert.pem', passphrase: '1234' }).get('/*', (res, req) => { res.write('

Hello, your headers are:

'); }).listen(port, (token) => { if (token) { console.log('Listening to port ' + port); } else { console.log('Failed to listen to port ' + port); } });