- Learning the features of Express.js. When creating a web server using node.js reading and working with data, response headers can get messy very quickly. Express makes this easier by abstracting these processes away with “middleware”. Express Middleware can do an arbitary action, using this pattern there many other pre-created and third-party middleware which we can make use of. Some frequenlty used ones is
express.Router()
which let your programme actions depending on the URI. Another isbodyParser
which let your tap into thereq.body.message
property to access the payload without needing to work with data streams. There are many more express middleware available!