O'Reilly logo

Node.js in Action by Mike Cantelon, Marc Harter, T.J. Holowaychuk and Nathan Rajlich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Building Node web applications

This chapter covers

  • Handling HTTP requests with Node’s API
  • Building a RESTful web service
  • Serving static files
  • Accepting user input from forms
  • Securing your application with HTTPS

In this chapter, you’ll become familiar with the tools Node provides for creating HTTP servers, and you’ll get acquainted with the fs (filesystem) module, which is necessary for serving static files. You’ll also learn how to handle other common web application needs, such as creating low-level RESTful web services, accepting user input through HTML forms, monitoring file upload progress, and securing a web application with Node’s Secure Sockets Layer (SSL).

At Node’s core is a powerful streaming HTTP parser consisting ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required