Writing middleware for use in Express apps
  • References/JavaScript/Express/Guide

Overview Middleware functions are functions that have access to the request object (req), the response object (res)

2025-01-10 15:47:30
Basic routing
  • References/JavaScript/Express/Getting started

Routing refers to determining how an application responds to a client request to a particular endpoint, which is a URI (or path) and a specific HTTP request method

2025-01-10 15:47:30
Production best practices: performance and reliability
  • References/JavaScript/Express/Guide

Overview This article discusses performance and reliability best practices for Express applications deployed to production

2025-01-10 15:47:30
Moving to Express 4
  • References/JavaScript/Express/Guide

Overview Express 4 is a breaking change from Express 3, so. That means an existing Express 3 app will not work if you update

2025-01-10 15:47:30
app.METHOD()
  • References/JavaScript/Express/Application

app.METHOD(path, callback [, callback ...]) Routes an HTTP request, where METHOD is the HTTP method of the request, such as GET, PUT, POST,

2025-01-10 15:47:30
req.get()
  • References/JavaScript/Express/Request

req.get(field) Returns the specified HTTP request header field (case-insensitive match). The Referrer and Referer

2025-01-10 15:47:30
Developing template engines for Express
  • References/JavaScript/Express/Guide

Use the app.engine(ext, callback) method to create your own template engine. ext refers to the file extension, and callback is the template

2025-01-10 15:47:30
app.locals
  • References/JavaScript/Express/Application

app.locals The app.locals object has properties that are local variables within the application.

2025-01-10 15:47:30
req.cookies
  • References/JavaScript/Express/Request

req.cookies When using cookie-parser middleware,

2025-01-10 15:47:30
req.subdomains
  • References/JavaScript/Express/Request

req.subdomains An array of subdomains in the domain name of the request. //

2025-01-10 15:47:30