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 ...
Get Node.js in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.