Skip to content

Tag Archives: Express.js

The express.urlencoded() function is a built-in middleware function in Express. It parses incoming requests with urlencoded payloads and is based on body-parser.Syntax:   express.urlencoded( [options] )… Read More
The express.static() function is a built-in middleware function in Express. It serves static files and is based on serve-static. Syntax: express.static(root, [options]) Parameters: The root… Read More
The app.engine() function is used to register the given template engine callback as ext. By default the Express itself will require() the engine based on… Read More
The express.Router() function is used to create a new router object. This function is used when you want to create a new router object in… Read More
The express.text() function is a built-in middleware function in Express. It parses the incoming request payloads into a string and is based on body-parser.Syntax:   express.text(… Read More
The app.param() function is used to add the callback triggers to route parameters. It is commonly used to check for the existence of the data… Read More
The router.use() function uses the specified middleware function or functions. It basically mounts middleware for the routes which are being served by the specific router.… Read More
The app.delete() function is used to route the HTTP DELETE requests to the path which is specified as parameter with the callback functions being passed… Read More
The app.use() function is used to mount the specified middleware function(s) at the path which is being specified. It is mostly used to set up… Read More
The app.disable() function is used to set the boolean setting name to false. It is basically the shorthand for the app.set(name, false). So instead we… Read More
The app.enabled() function is used to return the bool values of setting name. It returns true if the setting name is enabled and returns false… Read More
The app.all() function is used to routing all types of HTTP request. Like if we have POST, GET, PUT, DELETE, etc, request made to any… Read More
The app.listen() function is used to bind and listen the connections on the specified host and port. This method is identical to Node’s http.Server.listen() method.If… Read More
The res.format() function performs content-negotiation on the Accept HTTP header on the request object if it is present. This function checks the Accept HTTP request… Read More
The app.disabled() function is used to return the bool values of setting name. It returns true if the setting name is disabled and returns false… Read More

Start Your Coding Journey Now!