Express

Guide to the Express Request Object — Body, Cookies and More

The request object lets us get the information about requests made from the client in middlewares and route handlers. In this article, we’ll look at the properties of Express’s request object in detail, including getting the request body and cookies. Request Object The req parameter we have in the route handlers above is the req […]

Guide to the Express Request Object — Body, Cookies and More Read More »

Guide to the Express Request Object — Methods

The request object lets us get the information about requests made from the client in middlewares and route handlers. In this article, we’ll look at the properties of Express’s request object methods in detail, including getting headers and query strings. Methods The request object has various methods. req.accepts(types) The accepts method checks the Accept request

Guide to the Express Request Object — Methods Read More »

Guide to the Express Response Object — Redirection and Templates

The Express response object lets us send a response to the client. Various kinds of responses like strings, JSON, and files can be sent. Also, we can send various headers and status code to the client in addition to the body. In this article, we’ll look at various properties of the response object, including sending

Guide to the Express Response Object — Redirection and Templates Read More »