Supplying middleware to modify HTTP response headers


show more Supplying middleware to modify HTTP response headers provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Node.js Essential Training (2013) show less
please wait ...

Supplying middleware to modify HTTP response headers

When you're building out an express application, usually you're handling one request at a time. However, there's some instances where there's logic applying to all requests. In this video, we'll write some Express middle ware for all requests. Go to the Exercise Files and go to chapter five, video five and then copy the Start folder to the Desktop. Now let's go to terminal and install the modules. Type in cd and space and then I'm just going to drag the folder into terminal to get this path.

Now I'm going to type npm space install and then enter. Now all the modules are installed and we're ready to go. Let's start up the server and then go to one of our routes. Type in node, space, app. And then hit Return. The server is now listening on port 3000. I'm going to go to Postman. If you don't already have Postman installed, you can get it from the Google Chrome store. We're going to be looking at some HTTP Header information. And that information can also ...

Supplying middleware to modify HTTP response headers
Video duration: 4m 37s 3h 17m Intermediate

Viewers:

Supplying middleware to modify HTTP response headers provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Node.js Essential Training (2013)

Subject:
Developer
Software:
JavaScript Node.js
Author:
please wait ...