NodeJS HTTP服务器中的参数

So I'm trying to make a simple HTTP module, similar to express, to help learn how to use HTTP. When working with express I often use parameters, (ex) app.get('/id/:id' (req, res) => {console.log(req.params.id); stuff}). So I was wondering for one if it is possible just using HTTP, and for two, if it isn't able to be done with just HTTP, then how would you go about creating it?