Summary
In this chapter, we learned how to combine the concepts of sockets and all the study of the HTTP protocol we did in previous chapters. As a result, we implemented a small web server that can handle HTTP requests and responses, delivering content from several types of files (text and images, among others). Furthermore, we understood its initial limitation of only being able to handle a single request at a time. Because of this, we implemented a strategy using multithreaded processing to increase the capacity for service requests.
In the next chapter, we will understand how to naturally evolve a web server into an application server. Now, from an HTTP request, we will not only deliver file content, but also deliver the result of the execution of a method as a response. This is where all the dynamic behavior of web applications begins.
Get this book's PDF copy, code bundle, and more
Scan the QR code (or go to packtpub.com/unlock). Search for this book by name, confirm the edition...