'use strict';
-const { IncomingMessage } = require('http');
+const { IncomingMessage } = require('node:http');
/**
* Welp, here we are, already into the crazy.
if (typeof name !== 'string') {
throw new TypeError('\'name\' must be a string');
}
- return this.headers && this.headers[name.toLowerCase()];
+ return this.headers?.[name.toLowerCase()];
};
}